How to create a actionListener for individual JButton in a for loop?
How to create a actionListener for individual JButton in a for loop? Can someone help me?
Do you mean something like this?:
JButton tempButton;
for(int i = 0; i < 10; i++){
tempButton = new JButton("Button " + String.valueOf(i));
tempButton.setActionCommand("action" + String.valueOf(i));
tempButton.addActionListener(this);
// or tempButton.addActionLister(new ActionListener(){...});
frame.add(tempButton);
}
Similar Messages
-
How to created a Report to calculate On-Hand inventory for pending sales
hi,
how to created a Report to calculate On-Hand inventory for pending sales orders.for this report what are the tables and fields we have to use give me sample report.
thank you
radhakrishna.Hi!
Tables:
VBAK - sales order header data
VBAP - sales order position data
VBUK - sales order status header data
VBUP - sales order status position data
VBELN field is the key between the tables.
Statuses in tables VBUK, VBUP: A-uncompleted, B-partially completed, C-fully completed
Regards
Tamá -
How to create a sub head(code) in a catalog- for service notification
Hi everyone,
How to create a sub head(code) in a catalog- for service notification?
Please guide with your valuable comments.
Please guide its very urgent.
Thanks and Regards
Edited by: MPVash Vash on Oct 24, 2008 8:14 AM
Edited by: MPVash Vash on Oct 30, 2008 7:38 AMHi,
Go to T-code QS41, give the catalog and code group and enter.
U can click on the code after selecting the code group and create new codes.
In SPRO u should see which type of catalog is assigned to the notification type. This u can see in the overview of the notification type by selecting the notification type in SPRO.
Regards
Haricharan -
How to create a ABAP report off of SRM box for live data?
How to create a ABAP report off of SRM box for live data?
Thanks in advance.
York.you can try infoset query:
STEP - A:
1. Go to T Code RSQ02 and give the InfoSet name & select CREATE.
2. Provide the Name(Description) and Data Source i.e. for eg here i take "DIRECT READ OF TABLE" = /BIC/AODS100. Then CONTINUE.
3. Select what to Include in the 3 options available with the POPUP, here "INCLUDE ALL TABLE FIELDS". Then Check the fields and click GENERATE(one RED and WHITE round icon).
4. Now provide the PACKAGE for the INFOSET. Come Back(F3).
STEP - B: optional(If u want to create a new user group)
1. Select ENVIRONMENT -> USER GROUPS. Provide the User Group name and CREATE.
2. Provide Description and SAVE.
3. Provide PACKAGE and SAVE. Come Back (F3) to the Initial Screen.
4. Click Role/User Group Assignment. Select Newly Created User Group or an existing one. Then SAVE (CTRL + S). F3.
STEP - C:
1. Select ENVIRONMENT -> Queries. Provide the query name and CREATE.
2. Select the INFOSET u have created and assigned the user group.
3. Provide the Title and Select BASIC LIST. There you have to select (check) the fields you want to display, SAVE and then TEST. It will ask for Variant, just CONTINUE. -
How to create ship to party and sold to party for DC10 during sales order ?
Hello all:
When creating sales order for a material in VA01 with sales Org 1000,
distribution channel 10, division 00
The system does not give me any Ship to Party and Sold to Party with the above combination
How to create ship to party and sold to party with the above combination (Plant 1000,
sales org 1000, distribution channel 10, during creation of a sales order
Ironically, when creating material master for a material with a material type KMAT, plant 1000
sales org 1000, the only distribution channel is populating in the input help (F4) is 10
For which no ship to party neither sold to party is maintained in sales order creation
Thanks in Advance!!Dear Eshwer
It is bcoz, the said account groups (Sold To Party and Ship To Party) are not created in the sales area 1000 / 10 / 00.
To create a customer master, you have to go to XD01, select the Account Group, Company Code and the respective Sales Area and execute. In the Customer Master, you have three tabs, viz.General Data where you have give address details of the customer, then in Control Data, you have to assign the respective Recon Account and in Sales Area Data, you have to maintain the customer's sales related details. Once you give all these datas and save the data, a customer code will be displayed at the bottom.
Now go to VA01, input the sale order type and the sales area and execute.
thanks
G. Lakshmipathi -
How to create a link on a biller direct screen for downloading a pdf file
Hi,
My requirement is to create link on biller direct screen, when I click on that link a pdf document will be downloaded in local system. I need help on thatcontd from previous post, excerpt from BD config guide:
Web Application
3. Displaying the bill document
The Web application displays the bill document.
If the bill document is displayed using a separate Web server (for example,
the Web server of an optical archive), then the URL for displaying the bill details
can be transferred at event 1235 when you create the bill list. The BAdI
FIS_INVOICEDETAIL is not called, but the Web application sends an HTTP
request to this URL. Since the Web application requests the bill data by request
to the Web server for bill details, the Web server does not need to have an
authentication mechanism. SAP delivers an example implementation for
accessing a Web server for bill details.
Connecting Other Billing Applications
As described above, SAP Biller Direct only makes available the display of bills from Sales and
Distribution (SD) in PDF format. If you want to use this function for bills with a different origin,
you need to proceed as follows. See the BAdI documentation for further details.
1. Create an implementation for event 1235. You have to set indicator XXML, XPDF, or
XMULTARCH (or all three) in table T_INVOICES so that a customer is able to load
XML or PDF data in the front end of SAP Biller Direct. Technically, this means you
ensure that the appropriate icons are shown.
2. Implement BAdI FIS_INVOICEDETAIL. This BAdI is called by the front end if the
customer selects the corresponding link. You can determine the required format using
I_INVOICE_FORMATS. Create the corresponding binary data, and fill table T_XML,
T_PDF or T_MULTIPLE_ARCHIVED_DOCS (or all three).
3. Then set indicator XXML, XPDF or XMULTARCH (or all three) in structure
C_INVOICE_FORMATS.
My Questions:
1. My PDFs are stored on a web server as described in step 3, does that mean that I don't need to use the BADI? How are these URLs generated? Does BD automatically know how to retrieve them from archivelink?
2. My documents are insurance bills, not S&D bills. Does that mean that I need to use the BADI as described in "connecting other billing applications"?
To me there is a lot of ambiguity in the way this is described in the configuration guide. Could use some help with the interpretation. -
I got 2 Apple ID and the first time to I use it to iTune or App Store, a box will pop out and telling me this:
"This Apple ID has not yet been used with the i Tunes Store. Please review your account information."
Then, I click on the button, "Review". Bla bla... but ended up, I must provide a credit card in order to complete it.
I do not have credit card, so I search 'How to create iTune or App Store without credit card', same link and same tactic only valid for New Apple ID.
So, it seem no other option to create iTune or App Store without credit card for existing Apple ID, right?The same thing is happening to me!
-
How to create a new Text Object to be used for SAVE_TEXT FUNCTION
hi,,
can anyone tell how can i create a new text object and text id for saving text by using function SAVE_TEXT.
Thankshi,.
try out this
DATA: header LIKE thead.
DATA: newheader LIKE thead.
DATA:lines LIKE tline OCCURS 0 WITH HEADER LINE.
header-tdobject = 'VBBK'.
header-tdname = delivery number.
header-tdspras = language.
lines-tdformat = '*'.
header-tdid = text id. "for example: Z022
lines-tdline = your text that you want to write .
APPEND lines. CLEAR lines.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = header
savemode_direct = 'V'
IMPORTING
newheader = newheader
TABLES
lines = lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5. -
How to create a user new user status as closed for aWBS element
Hi,
Can any one explain me the process of how to create a new user status '' Closed'' for the WBS element which when trying to close has error and are not able to close. So can we create a new status inroder to close the WBs element
Thanks nd Regards
SriHello Srihari,
Use OK02 transaction to create a status profile. You can create a new user status in the status profile.
If you already have a status profile which is maintained in the master data, then you can create a new user status as closed to that status profile.
Hope this will help you..
Regards,
Praisty -
How to create or generate sample / test data (mass data for tables) ?
Hello,
I'm playing around a little with some SQL-functions, but actually I have only a small number of rows in my sample table and I would like to have "big, filled tables". :-)
Is there an easy way to generate mass data for tables, e.g. for testing the performance of SQL-statements when a table is full of data.
For example:
How can I generate lets say 50.000 or 100.000 rows into a table with two columns? Is there a ready-to-use command to generate this mass of data?
How do you create random data for testing?
Thanks a lot in advance for your help!
Best regards
FireFighterFirst, thanks for the quick and great answer! It looks exactly what I'm looking for. How could I forget to look at Tom's site for such a script. ;-)
But.....
...unfortunately, it doesn't seem to work. :-( And since I'm not so experienced in PL/SQL until now (looking forward to a course end of year...) I don't know what the error is. Is it not meant to use within 10g ??
So, here is what i do:
1. Log in to SQL*plus and generate the procedure with "@gen_data.sql"
2. Then I try to execute the procedure by using "exec gen_data('mytesttable',500);"
Then I get the following error output:
SQL*plus> exec gen_data( 'mytable', 50 );
BEGIN gen_data( 'mytable', 50 ); END;
ERROR at line 1:
ORA-00936: missing expression
ORA-06512: at "SYS.GEN_DATA", line 34
ORA-06512: at line 1
And here is the code that I have used:
01 create or replace procedure gen_data( p_tname in varchar2, p_records in number )
02 authid current_user
03 as
04 l_insert long;
05 l_rows number default 0;
06 begin
07
08 dbms_application_info.set_client_info( 'gen_data ' || p_tname );
09 l_insert := 'insert /*+ append */ into ' || p_tname ||
10 ' select ';
11
12 for x in ( select data_type, data_length,
13 nvl(rpad( '9',data_precision,'9')/power(10,data_scale),9999999999) maxval
14 from user_tab_columns
15 where table_name = upper(p_tname)
16 order by column_id )
17 loop
18 if ( x.data_type in ('NUMBER', 'FLOAT' ))
19 then
20 l_insert := l_insert || 'dbms_random.value(1,' || x.maxval || '),';
21 elsif ( x.data_type = 'DATE' )
22 then
23 l_insert := l_insert ||
24 'sysdate+dbms_random.value+dbms_random.value(1,1000),';
25 else
26 l_insert := l_insert || 'dbms_random.string(''A'',' ||
27 x.data_length || '),';
28 end if;
29 end loop;
30 l_insert := rtrim(l_insert,',') ||
31 ' from all_objects where rownum <= :n';
32
33 loop
34 execute immediate l_insert using p_records - l_rows;
35 l_rows := l_rows + sql%rowcount;
36 commit;
37 dbms_application_info.set_module
38 ( l_rows || ' rows of ' || p_records, '' );
39 exit when ( l_rows >= p_records );
40 end loop;
41 end;
42 /
Does anybody know what my error i have in here?
Thanks again for you help in advance!
Rgds
FF
Message was edited by:
FireFighter -
How to create Table in a Table without a ViewLink for Master/Detail
Hi,
Can we create a Table within Table in OA Page without using a view link. Need a Master Detail records to be displayed but I can't use a ViewLink. Is it possible to
have a Table within Table without using a ViewLink. As I have DetailVO with multiple bind variables. I tried ViewLink but it didn't work so wondering if can achieve this
using table in table without ViewLink
ThanksHi,
I created a Table then in the table I created a detail in which I created another table I created a transient view attribute i.e. DetailFlag that I set to my outer table. When I run the page it does show me the Master records and showhide link but when I click on the show it throws an error saying:
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition of type Attribute not found
Even though all the items in Detail table are attached to VO attributes of DetailVO
As I have a different MasterVO query with some bind variables and the DetailsVO query is different with some bind variables. Now how do I capture when a user clicks on Show and at that time wants to get some values from a selected master row and pass them to my DetailVO Query so the detail data for that selected master row shows. How do I get handle to the selected Row Data so to get the some values that need to be passed to the DetailVO.
I tried following the guide but am not able to have it functioning.
Here is what I have in my controller's processRequest method
OAApplicationModule am = pageContext.getApplicationModule(webBean);
System.out.println("******* 1");
am.invokeMethod("initializeTables");
OATableBean table =
(OATableBean)webBean.findChildRecursive("OuterTable");
if (table == null)
MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "OuterTable") };
throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
table.queryData(pageContext, true);
System.out.println("******* 2");Any help is appreciated.
Thanks -
How to create a mask on individual frames of a video in Photoshop CS5 extended
I am working on a video piece and I need to mask out a moving figure throughout the entire video, what is the best way to to this? I know that I can import the video frames to layers in CS3 and then create a mask on each frame, but there are thousands of frames - and when I render the video from the animation it is slow to run in quicktime. Even if I were able to edit each frame, it seems like there should be a better way... I'm not terribly familiar with using Photoshop to edit video, maybe there is another program that would do what I want in a better way?
Any suggestions would be greatly appreciated.This sounds like something Adobe Edge would be perfect for if it would just support video importing.
I created a mask over a video in Flash, but I had to convert the background video (which is masked) from mov to flv. Then you import it into Flash and stick the transparent PNG on a top layer for a mask. You can also animate the mask in Flash somewhat... more so if it's a vector object.
Result: Http://www2.avatarix.com/manatee
I would prefer to do this in HTML5 though... which is what Adobe Edge is for. But I can't figure out how to import video into Edge. I've tried 5 different video formats... webm, ogv, mp4, mov and flv.
Hoping this will be a feature when it's finally out in the market.
The struggle continues. -
How to create and use a new jbutton method?
hi i'm making a program which has a lot of buttons so i decided to create a jbutton method, here it is
public JButton newButton(String url, String url2)
URL imgURL = MachineInterface.class.getResource(url);
ImageIcon icon = new ImageIcon(imgURL);
JButton button = new JButton(icon);
button.setBorder(null);
Cursor cursor = new Cursor(Cursor.HAND_CURSOR);
button.setCursor(cursor);
URL imgURL2 = MachineInterface.class.getResource(url2);
ImageIcon icon2 = new ImageIcon(imgURL2);
button.setPressedIcon(icon2);
return button;
}the button shows up alrite if i do it like this
panelEastSouth.add(tm.newButton("images/10p.png", "images/10pIn.png"));but i would like to do it like this
newButton button10 = new newButton("images/10p.png", "images/10pIn.png");
button10.addActionListener(this);i want it like this so i can add actionlisteners to them.
how do i make this work?
thanks
bradnewButton is a method returning a JButton, not a class, so it would be just
JButton button10 = newButton("images/10p.png", "images/10pIn.png");
button10.addActionListener(this); -
How to create a PDF that prints at actual size for all printers
I create printable educational products for teachers and homeschoolers. I need to be able to make some printable PDFs that have cards set to a specific dimension, say 3" x 3". When I create PDFs in InDesign and print them, the printer tends to shrink the PDF down. This happens even when I set the Page Scaling to None. But regardless of what my printer does, I would like to be able to create PDFs that print at actual size for anyone who purchases my products. How can this be done? Can I change the settings when I create the PDF? Do I need to includes special instructions with my products? Thanks so much for your help.
You can specify the printing process in the PDF for Acrobat and Reader, open the PDF in Acrobat > file properties (right mouse click on the page) and in the extended tab (the most right tab) you can set printing not to scale for that PDF as default setting.
-
How to create enhancement SRM document List in Web dyn for ABAP?
Hi all,
We are in SRM 7.0.
I need to develop enhancement SRM list program that display SC, PO, RFX, Confirmation, Contract, Invoice so on.
For example,
I know just shopping cart Number,
But I want all relative document.
How can I do????
I can't find suitable database table and connection of tables.
I want to know database table name
and connection of SRM tables.
Thanks in advance.
ChrisHi Rodrigo,
Firstly, list the Standard component under Component Usage of the Component which you are creating in your View.
Second, In the Custom Component, view, goto context, and try to add the node from the Standard component in to your view.
NOTE: The second step requires a Node in component controller of the Standard Component.
Finally, Now in your view, get the data from that and map the data.
NOTE: To do this, I think you need to call your Standard WDA first and then only your node contains data and it will be passed.
I hope it is helpful.
Regards,
Shashikanth. D
Maybe you are looking for
-
How do i share music with 2 iphones using the same apple id?
how do i share music with 2 iphones using the same apple id?
-
Music Library shared on all accounts on Mac
I just bought a Mac book and copied all my music from my PC. I then set up accounts for different family members but they there is no music in their libraries. All the music is in the admin account. How do I share the music with all accounts on my MA
-
What is local items keychain and how do I get rid of it?
WWhat does this mean. How do I get rid of it or make good use of it?
-
Hello all, thanks for reading. I have searched the Internet, this forum, and I am at the end of my wits. I have workstations that must run Java applets for specific sales training. Several workstations will not run applets at all, and only get the re
-
ICSS - Sales Unit Determination in Service Request
Hi Experts, I want to know how the Sales Unit determination takes place in Service Request creation through ICSS, say if there are multiple Sales Units (Sales Org, Dist Chnl, Div) combinations present for a BP will ICSS also popup a windows asking fo