How to put multiple lines label to a button
I found out that the default for creating a button label is one-line setting. How can I make multile lines if the label is too long?
forgot the url,
http://java.sun.com/docs/books/tutorial/uiswing/components/label.html
Similar Messages
-
How to create a multiple line label?
Hi,
I need to set a multiple line label. If I enter the following code:
strTitle = "<html><body><b><font color=red>The first line,<br>";
strTitle = strTitle + "the second line.</font></b></body></html>";
jLabelTitle.setText( strTitle );
I can see a two line label. However, with such code, if I go to the UI editor for that frame, the jdev immediately crashed. I am using jdev 9i_902. If I go to UI editor for any other frames without such code, everything is fine, no problem at all.
Can anybody explain why? Is there other way to create a multiple line label?
Thanks!
HarveyHarvey - I have reproduced this in the production and the latest build. I have logged bug 2446385 but have found a work around. If
you code:
strTitle = "<html><body><b><font color=red>The first line,<br>"+"the second line.</font></b></body></html>";
jLabel1.setText(strTitle);
It seems to work ok.
Hpoe this helps and thanks for posting this.
Regards
Grant Ronald
Product Management -
How to Update multiple line Items in Sales order Interactive form
Hi,
I have created one online interactive form for sales order. In that I incorporated dynamic table logic .i.e. we can add row and delete row using buttons. Interactive form is working fine with one line item. But if I give multiple lines in table (line item) its creating sales order with single line item. So please help me how to pass multiple lines.
Thanks & Regards,
Krishna.Hi,
Check out this link, this deals with the problem you are facing.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
Regards,
Runal -
How to put separator lines in menu items in a gui status ?
Hi,
I have created gui status for my z transaction
I need the separator lines in the menu items like it is seen in std transactions
For example, in any screen , in the Help menu, we can see the following.
Application Help
SAP Library
Glossary
(line)
Release notes
(line)
SAP Service Marketplace
could you please help me how to put the lines ?
thanksHi,
Goto Your GUI status.click on your MENU bar.
under the menu bar you will have your own menu items.
where ever you want separator line do the following way.
you will have 2 columns under menu bar
1) code
2) text.
under code dont put anything.
but under text column you put dashes and enter or select right click there and choose separator line.
you will get separator line.
activate and run the ztcode.you will get .
code text
Application Help
SAP Library
Glossary
Release notes
SAP Service Marketplace
Thanks
Parvathi -
How to insert multiple line items in fv60 using bdc.
Hi all,
How to insert multiple line items in fv60 using bdcshi
chk this
DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
DATA : IT_MESSAGES LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
DATA : V_EBELP(30) , V_MENGE(30) , V_WERKS(30), V_EMATN(30) ,
V_PEINH(30).
DATA : FILE TYPE STRING, V_MSG(100) , V_IND(2) TYPE N , FLAG VALUE 'X'.
PARAMETERS: P_FILE(50) TYPE C DEFAULT 'C:\ME21_TEST'.
DATA : BEGIN OF ITAB OCCURS 0,
IND(02),
LIFNR_001(010),
data element: BSART
BSART_002(004),
data element: BEDAT
data element: EKORG
EKORG_004(004),
EKGRP_006(003),
data element: LPEIN
LPEIN_005(001),
data element: EMATNR
EMATN_01_007(018),
data element: EWERK
WERKS_01_008(004),
data element: EPEIN
PEINH_01_009(006),
data element: EWERK
MENGE_01_013(017),
data element: AUFEP
EBELP_014(005),
data element: AUFEP
END OF ITAB.
START-OF-SELECTION.
FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SORT ITAB BY IND.
START-OF-SELECTION.
LOOP AT ITAB.
REFRESH IT_MESSAGES.
<b>V_IND = V_IND + 1.</b>
<b>AT NEW IND.</b>
<b>READ TABLE ITAB INDEX SY-TABIX.</b>
PERFORM BDC_DYNPRO USING 'SAPMM06E' '0100'.
PERFORM BDC_FIELD USING 'EKKO-LIFNR'
ITAB-LIFNR_001.
PERFORM BDC_FIELD USING 'RM06E-BSART'
ITAB-BSART_002.
*perform bdc_field using 'RM06E-BEDAT'
ITAB-BEDAT_003.
PERFORM BDC_FIELD USING 'EKKO-EKORG'
ITAB-EKORG_004.
PERFORM BDC_FIELD USING 'RM06E-LPEIN'
ITAB-LPEIN_005.
PERFORM BDC_FIELD USING 'EKKO-EKGRP'
ITAB-EKGRP_006.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
ENDAT.
<b>PERFORM BDC_DYNPRO USING 'SAPMM06E' '0120'.
CONCATENATE 'EKPO-EMATN(' V_IND ')' INTO V_EMATN.
PERFORM BDC_FIELD USING V_EMATN
ITAB-EMATN_01_007.
CONCATENATE 'EKPO-WERKS(' V_IND ')' INTO V_WERKS.
PERFORM BDC_FIELD USING V_WERKS
ITAB-WERKS_01_008.
CONCATENATE 'EKPO-PEINH(' V_IND ')' INTO V_PEINH.
PERFORM BDC_DYNPRO USING 'SAPMM06E' '0120'.
PERFORM BDC_FIELD USING V_PEINH
ITAB-PEINH_01_009.
*CONCATENATE 'EKPO-MENGE(' V_IND ')' INTO V_MENGE.
*perform bdc_dynpro using 'SAPMM06E' '0120'.
*perform bdc_field using V_MENGE
ITAB-MENGE_01_013.
*CONCATENATE 'EKPO-EBELP(' V_IND ')' INTO V_EBELP.
PERFORM BDC_DYNPRO USING 'SAPMM06E' '0120'.
PERFORM BDC_FIELD USING 'RM06E-EBELP'
ITAB-EBELP_014.</b>PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
AT END OF IND.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=BU'.
ENDAT.
CALL TRANSACTION 'ME21' USING IT_BDCDATA MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_MESSAGES.
LOOP AT IT_MESSAGES WHERE MSGTYP = 'E' OR MSGTYP = 'A'.
IF FLAG = 'X'.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
DEST = FILLER8
GROUP = 'GAMY_FAILURE'
HOLDDATE = FILLER8
KEEP = 'X'
USER = SY-UNAME
RECORD = FILLER1
PROG = SY-CPROG
IMPORTING
QID =
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CLEAR FLAG.
ENDIF.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'ME21'
POST_LOCAL = NOVBLOCAL
PRINTING = NOPRINT
SIMUBATCH = ' '
CTUPARAMS = ' '
TABLES
DYNPROTAB = IT_BDCDATA
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = IT_MESSAGES-MSGID
LANG = 'EN'
NO = IT_MESSAGES-MSGNR
V1 = IT_MESSAGES-MSGV1
V2 = IT_MESSAGES-MSGV2
V3 = IT_MESSAGES-MSGV3
V4 = IT_MESSAGES-MSGV4
IMPORTING
MSG = V_MSG
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
WRITE : / V_MSG.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
ENDLOOP.
IF FLAG NE 'X'.
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
NOT_OPEN = 1
QUEUE_ERROR = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR IT_BDCDATA.
IT_BDCDATA-PROGRAM = PROGRAM.
IT_BDCDATA-DYNPRO = DYNPRO.
IT_BDCDATA-DYNBEGIN = 'X'.
APPEND IT_BDCDATA.
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
CLEAR IT_BDCDATA.
IT_BDCDATA-FNAM = FNAM.
IT_BDCDATA-FVAL = FVAL.
APPEND IT_BDCDATA. -
How to validate multiple lines which is exist in the form builder at the same session
Hi All,
we are working on oracle Forms personalization to trigger the message at the point of saving multiple lines rather than requiring each line to be save individually. Currently the oracle form is allowing to user to enter two distinct lines that have same resource and basis type in BOM.
Currently the Oracle form is allowing to enter the duplicate combination and not giving any error message even we enter the same combination of data.
As per the customer requirement, they don’t want to validate the data while creating the records but when they try to save the form, in that case it should validate all the records at a time then need to display the appropriate message.
Customer don’t want to customize the Oracle standard form. Here we have only option to use form personalization or through custom.pll.
Any idea on how to validate multiple lines which is exist in the form builder at the same session as before inserting the record itself need to perform the validations for all the records.
Thanks for your help in this regard.
Regards,
Thirupathiyou can write a post script which will do the necessary tasks.
I mean, once you are done with inserting records into these tables, exeute another procedure which will insert these "extra" records, based on some logic.
you may not be able use DB trigger as it may generate mutating error or if you don't write it carefully, it will go into recursive loops as you are refering to same tables.
HTH -
How to select multiple lines in reports
Hi,
how to select multiple lines in a reports and process those selected lines to other activities like BDC.
Please paste sample report here. or any demo examples . (don't paste ALV report , paste only classical report)
suppose there are 10 records in output, i want to select 3 records and process other activities like bdc.
Point will awarded.Hi ,
the o/p in ur case will be a basic list output with a check box enabled in the left .
Now say there are 10 records in the list output and i have checked 3 of them where checkboxes are enabled .
And i press a button to submit this to the BDC .
Here u need to make use of
READ LINE statement to read the records from the list output and then pass them to the BDC .
The code would be something like this
DO .
Read line index <field> where checkbox <> ' '.
ENDO.
You can have a look at the F1 help on read line . This will mkae u clear .
Hope this gives u an idea.
Regards,
Vijay. -
How to put multiple targets in ODI
Hi All,
Can i know how to put multiple targets in Oracle Data Inegrator.
Thanks in Advance!!You can have one target per interface. There are some KMs in ODI 11g to generate Oracle multi target insert statements or Teradata comparable ones. You could also hide additional inserts under the hood in a KM if it is a common design pattern.
Cheers
David -
How to read multiple lines using 'REUSE_ALV_GRID_DISPLAY'
Hi,
In ALV report the FM 'REUSE_ALV_GRID_DISPLAY' used.
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
How to read multiple lines in the following dynamic subroutine ?
I am able to read single value through p_selfld.
Nut the requirement is to change the values in more than 1 row for a fld (edit mode)
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
endform
Thanks in advanceYou can get the reference by a dirty assign, but this is not offcially supported...
But if you have some limitations.
FORM user_command USING fuw_ucomm LIKE sy-ucomm
fuw_selfield TYPE slis_selfield.
FIELD-SYMBOLS: <lfs_grid> type ref to cl_gui_alv_grid,
<lfs_row> type LVC_S_ROW.
data: li_rows type lvc_t_row.
assign ('(SAPLSLVC_FULLSCREEN)GT_GRID-GRID') to <lfs_grid>.
check sy-subrc is initial.
call method <lfs_grid>->get_selected_rows
IMPORTING
et_index_rows = li_rows.
endform. "user_command -
How to put multiple photos on 1 A4 page
Hi
Can someone tell me how to put multiple photos on 1 A4 page,
many thanksTry this:
File >> New
Set your width and height dimensions of A4 in mm.
Set resolution e.g. 72 for web use/email or 240-300 for printing.
Set background color to white (or whatever you prefer) and click OK
Now get your first image
File >> Place Embedded
Select your first image and click place
Drag to position and scale with the corner handles whilst holding down Shift.
Click the check-mark to commit.
Repeat for each of your other images. -
How to put schedule lines for one year in a schedule line agreement
dear all
thanks for the support till now from the forum
now i need some seetings by which the scheduling agreement will autoumatically take the schedule line for one year automatically
in my client we are getting open PO so
we have to make one agreement acording to that PO and thats for one year
and this one yr will have same quantity to be produced everyday
means 12nos of material every day for 12 month and this will be for every day
and as per that it should generate a sales order.i need to put schedule line automatically not mannually one by one for each date.so wat is the settingand how to reffer this scheduling agreement we can produce sales order.
please help
subrat
Message was edited by:
subrat pandaDear Subrat,
you cannot create a yearly schedule line in the scheduling agreement. It is not possible due to format restrictions of the date field. But what you can do is the follows (it is the modification, but it should work with the help of user-exits):
1. You can split the year schedule line to the monthly schedule lines. There are two ways to do it. If you apply the DELINS IDOC, then you can do it already during transfer of the data to the application (itr is the best way). Here you can use, for example, user-exit USEREXIT_ZUORDNEN_IDOCS (include LVED4FZZ) or customer function EXIT_SAPLVED4_002, called from the subroutine USEREXIT_DYNPRO (Include LVED4F0U). Alternatively, you can use the user-exit USEREXIT_MOVE_FIELD_TO_VBEP (Include MV45AFZZ) within the call transaction, then it will work also in the dialog case.
2. After getting the monthly schedule lines, you can create a planning delivery schedule, where you can split mothly schedule lines automatically to daily schedule lines according to the customer factory calender.The settings for generation of planning delivery schedules can be found under:
Customizing SPRO: Sales and Distribution => Sales => Sales Documents => Scheduling Agreements with Delivery schedules => Maintain Planning Delivery Sched. Instruct./Splitting Rules
It is the only ways, how you can reach your aim. I hope, this information will help you further.
Kind Regards,
Akmal Vakhidov
Development Support SD, SAP, Walldorf/Germany -
How to put text line just for a moment ?
Hi,
Do you know how to put a text line just for one photo? I mean I have more photos in one portfolio but i need the text line to be seen just for one photo for the others no.
Thank you in advance.You can use composition for this , where you can insert text frame for that specific photo where you want to add some description and for rest dont use text frame.
Thanks,
Sanjit -
How to draw multiple lines on same panel??
hiya
i would like to know how can I draw multiple lines on the same panel ?? I have already use repaint(); but it just come out the lastest line (say line 3) i draw .......those previous lines(say line 1 and 2) are disappear ........
Thanks for your help matehttp://www.java2s.com/ExampleCode/2D-Graphics/Line.htm
-
SNC5.1- How to Publish multiple line items in SNC Web UI (Supplier view)
Hi Experts,
I am working in SAP SNC Supplier Collaboration project. I have a scenario where i am trying to "Publish PO" for multiple line items in Web UI. I am able to confirm each PO line item and Save PO. But if i try to publish one line item at a time, then the system publishes the 1st line item and it does not allow me to publish the remaining PO line items.
All i can do is, Confirm and Save all line items, and then "publish" it at the end. In this way,i can view all the confirmed line items (POA) in SNC. But how do I Confirm/Save/Publish each PO line item?
Appreciate your help.
Regards,
dmohiteHi dmohite,
As the POC standard process Supplier should give confirmation for all PO items after confirmation of all items it should allow to Published the PO at Header level.
If supplier does not give confirmation for all items it should not allowed to Published the PO at Header level but you are able Published the PO at header level without confirmation of all PO items.
You can implement note no: 1320445 (manual implementation is required).
After implementation of this note without confirmation of all PO items it won't allow to publish the PO at header level.
Please let me know for any clarification.
Regards,
Nikhil -
How to outline multiple lines of text
how to I outline multiple lines of text to create a filled outline around a group of text like this:
Bdog,
You may (you have done some of it already):
1) Create the Type and Type>Create Outlines;
2) With the Group selected in the Appearance palette, in the flyout Add New Stroke and set the Stroke Weight and colour as desired, then drag the Stroke below the Contents;
3) Object>Expand Appearance;
4) Lock the original group with the letter shapes and Expand;
5) Pathfinder>Unite, then lock the bottommost path and delete the rest which formed the holes;
6) Unlock the original group with the letter shapes.
You may also wish to simplify the outline.
And what Kurt said.
Maybe you are looking for
-
I imported different trips to different catalogs on different external hard drives. Later renamed external HDs. I want to combine catalogs and have my source (NEF) files all together on one drive. I'm not really sure how to get those source files
-
Java.lang.Exception: No Such Target - wait_bottlenecks
I am using OEM 11g and getting following error on one of the database environment. java.lang.Exception: No Such Target - wait_bottlenecks I have tried few options based on following oracle note, still no success. I have one node RAC. But there are t
-
How to call external processes before & after WL services start/stop
I set up WL Admin Server and Managed Server to run as Windows services. I have the code to retire/re-activate in an ANT script and right now, I execute it via the command line. Here's my question I want to retire a SOA composite BEFORE my Managed Ser
-
Can't get Powerbook 550 to register as Gigabit device
Hi all I am having problems trying to get my 15" 550 Powerbook Titanium G4 to register as a gigabit device through a new Netgear GS608 switch. The switch indicates the connection speed by colour, Orange for 100 and green for 1000 and all I am getting
-
Not to be too academic, but iMovie has the phrase "This clip must be converted before it's speed can be adjusted". Shouldn't that be "its"?