Finding out the variable name of a Button?
When I use e.getSource in the ActionPerformed event I get a String like this:
javax.swing.JButton[4/4,84,60,21x20,layout=javax.swing.OverlayLayout,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@6f36,flags=48,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=,defaultCapable=true]I want to "extract" the button name which is "4/4" in this example. How can I do this without going through the String (using a method instead)?
Hi quereinsteiger,
this is just an idea:
String name ="";
if(e.getSource() instanceof JButton){
JButton b =(JButton)e.getSource();
name = b.getName()
}HTH, Phil
Similar Messages
-
How to find out the table name
hi,
how to find out the table name in which the data from a particular structure in a particular screen is saved,
please tell me the procedure to find out the table name for saving the structure data that is inputted at runtime.
Thanks,
chinnuHi Chinnu,
Below are the tables that are referred to find out the table names
DD02L Table contains the SAP Tables.
DD02T Table contains the SAP Table Texts.
DD01L Table contains the Domains
DD01T Table contains the Domain Texts.
DD03L Table contains the Table Fields.
DD03T Table contains the Table Field Texts. (Language Dependent)
DD04L Table contains the Data Elements.
DD04T Table contains the Data Element Texts.
DD05s Table contains the Foreign Key Fields
last words with L and T only. L->Database Fetch T-> Text
And the procedure to retrive the table name is as follows
1. Go to se11
2. Enter table name DD03T and execute
3. In the next screen you can find Tables, fields, test etc. there you can enter the field name in the fields
and execute.
4. you can get all tables which contains the field.
I hope this will solve your problem
Regards,
Chandru -
Hi,
In selection screen (parameter) user will give input TXT file from presentation server to upload to SAP. I need to capture the file name only but not the path and need to concatenate with date stamp and need to download error log in XLS file to presentation server.
How to find out the file name from selection screen?
I searched SCN threads but not found relavant solution.
Thanks,
R KumarHi
This code gets only filename from selection screen :
REPORT x.
PARAMETERS p_file(100).
DATA : gv_full_path LIKE ibipparms-path,
gv_full_path_string TYPE string,
gv_filename(100),
gv_file_ext(3).
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Ask user to select file with a popup :
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = gv_full_path.
Get filename from path :
gv_full_path_string = gv_full_path.
CALL FUNCTION 'CH_SPLIT_FILENAME'
EXPORTING
complete_filename = gv_full_path_string
IMPORTING
extension = gv_file_ext
name = gv_filename.
CONCATENATE gv_filename '.' gv_file_ext INTO gv_filename.
p_file = gv_filename.
I hope it helps. -
Transaction IW32.How to find out the person name.(Last changed By)
Hi all,
When i executed the transaction IW32.Its displays changed by and created by fields. please any body can tell me how to find out the person name who had made last change with respect to the field changed by.
Please tell me the table and field name for the field last changed by......
Regards,
Munna.hi,
check the table AUFK field AENAM for the order number(AUFNR) in IW32.......... -
How to find out the printer name for the Idoc
Hi guys
I want to find out the printer name for the Idoc,,some default printer is attached for one idoc,then how can we see the printer name for this idoc.
Regards
MadhooHi,
For ALE/IDOC the medium will be either ALE or EDI but not printer.So it might be wrongly attached.As such there won't be any printer attached to idoc.
Regards,
Nagaraj -
Table name to find out the application name
In table WWV_FLOW_USER_ACTIVITY_LOG there is a column called flow_id ,which is the application id .I want to know which is the table to find out the application name for a flow_id.
Thanks in advance,
MadhuriMadhuri,
I don't know how you are trying to access that table. The owner is the HTML DB schema, FLOWS_010600 for the 1.6 version. If you try to access it from your application page or another schema, of course you won't see it.
Scott -
Query to find out the table name and column name..
Hi Experts,
I have an Oracle DB in which has more than 50 tables and 100,000 records. I want to get the record which contains *"ITxtVarValue references a non existing text"* the text.
Is there any query there to find out the table name and column name of this particular record where it reside?
Please help. Any help will be rewarded.
Thanks,
GUsing this forum's search function, I found a thread that should give you an idea: How to find out a tablename
C. -
Hi, How to find out the program name with short description?
Hi Experts,
I've a doubt regarding reports.
I've some short descriptions.I've to find out the Technical Name of the program using that Short descripns.Is there any transaction code available to check this
I've tried in t.c se80.But i could not find the respective program names.
Please help me in this regards.Its an urjent issue.
Thanks in advance.
Regards,
Rekha.hi rekha,
1)Goto SE84(Repository InfoSystem) tcode.
2)In Repository Info System node, Select Program Library.
3)Then Select Programs.
4) And enter ur description and u press F8.
5) u can search program name based on description, package and many othet options. check it out.
U can find many programs with ur entered pattern.
Select ur program.....
Reward me if useful,
Harimanjesh AN -
I have an email account through yahoo. I am having trouble setting it upon my iPhone and can't receive or send emails!!!! I contacted Rogers and they said I need to find out the host name of the incoming server, in other words yahoos host name. Help!!
Yahoo's servers are notoriously unreliable. Use the "Yahoo" account type when setting it up. If it doesn't work, and you are positive the credentials are correct, wait a while and try again.
While you're waiting, set up a free gmail or iCloud email account. -
How does one find out the database name , service name in a database
hi,
how do u find out the database name , service name , SID in a database.
Please reply.
Thanks ,
Regards,
RCThis particular information is available in the view V_$PARAMETER owned by SYS. But you can also login with Server Manager as user INTERNAL and run:
SHOW PARAMETERS
The entries pertaining to the naming of the database are:
1. db_name
2. db_domain
3. db_name
4. instance_name
5. service_names
GLOBAL_NAME is a static (not changing) Data Dictionary view which has just 1 attribute (column) called GLOBAL_NAME.
When you run:
select GLOBAL_NAME from GLOBAL_NAME;
You are returned the full global name of the database, i.e. the db_name and the db_domain joined together by dot (.) For e.g. if your db_name = mgmt and db_domain = tech.co.in, then your global_name will be MGMT.TECH.CO.IN.
Ciao.
null -
How to find out the variable using in the system.
Hi Friends,
When I am trying to create a new variable for a infoobject. It is giving me a warning that Change the tecnical name 'New Variable.....' Before save
This is not allowing me to create any new variable.
In the system I find out one variable is there with the name 'New Variable.....'
And It is being used some where. When I am trying to delete this variable it is giving me a msg that it is being used in ZSCEMESTS.
But I am not able to find out where this ZSCEMESTS is exists.
Is there any TCODE for find out this object.
I want to delete this New Varable..... So can any body pls provide me the solution?
Regards,
SridharHi Sridhar.
Can you please tell me, is the variable entry mandatory? If yes please make the variable entry is optional.
Hi Sridhar,
Can you please tell me which type of variable it is? On which object this variable built?
Variable is available global level, so you can view this variable on the same object right click restrict --- variable --- select --- delete.
If it though it is already used in another query then use where used list then go to respective query and delete the same.
Regards,
Lokanatha. -
How to find out the user name and email address from SAP user id?
Hi experts,
In sto3n I find out the the user id with most navigations. I like to know his name or email address to contact him. Which table stores the user details? how to do it?
Thanks in advance.
Sharat.hi,
The below tables will give only the name .
USER_ADDRS
USER_ADDR
USER_ADDRP
USR02
i think you need email address .
you can use this Tcode : su01d
and give the user name and excute it
i hope it will help you.
Ram
Edited by: Ram velanati on Jun 30, 2008 6:57 PM -
How to find out the script name used in driver program
Hi Folks ,
I want to find out the Scripts(print program) used in my driver pogram .
How is it possible any Tcode availble for this ?
Thanks ,
Jaga.DHi Jagadish,
Go to transaction SE38 and open the program RSNAST00. There search for the subroutine TNAPR_LESEN.
Set a break point at that subroutine and leave. When printing the data from a transaction to a script or form (Like VA01 or VL02N), debugger is started when the processing reaches the subroutine in RSNAST00. There double click on the field TNAPR-FONAM. continue step-by-step execution. The field will display the name of the script or form that is currently being used.
Another way to do this is to go to transaction NACE and check the transaction for which you want to find out the script. There you will find the script and print program that have been set for a particular transaction. -
How to find out the infospoke name for an existing infoobject?
Hi,
Could any one pls tell me how to find out the existing infospoke name for an infoobject?
i've tried with where used list but its not coming....can any one pls suggest
Thanks,
SuriHi,
Check in metadata repository for that infoObject.
If you are still not able to identify, goto RSBO tx and press F4.
You will get the list of Infospokes available.
Go in each and chk from the General Tab, if the infoObject is available in the source system.
Regards,
Balaji V -
How can find out the User name?
Hi Gurus,
I have created one sales order with my user name. some one has changed order quantity in that sales order, so can u tell how can v find out thier user name?
CHeers,
SumithHi Sumith,
Go to VA02 and click on Environment at the top and click on changes. Now based on your line item where you feel changes have been made give your item number and tick overview , and additional info and execute.
Now double click where you want to drill down and find out for the user name.
I am sure this will help you. If it does dont forget to reward points for contribution.
Regards
Ravi
Maybe you are looking for
-
HT204150 iCloud sync dropping contacts from iMac to iPhone - help!
I have OS X Lion and am using iCloud with my iPhone. I've noticed that my iPhone is missing a number of my contacts from my address book with no apparent order or reason that I can see. There will be one or two missing under each letter, sometimes
-
Plz help me in finding out the BADI or menu exit for IW32
HI in Tcode IW32, based on the user status(ASTTX), the menu items ,EXTRAS -> TASK LIST SELECTION -> all items have to be grayed out. Please help me to find out BADI or menu exit which ever is available. Thanks, Pallavi.
-
Hi I wish for security reason of user data have option to export (backup) data in coded file so even if somebody would steel the file would not be able to read it (at least not that easy). It would be nice to have visual for exporting file in both ve
-
ITunes 8.2.1.6 install problems
Downloaded the new iTunes 8.2.1.6 file fine, but when installer ran kept getting an error saying "Invalid drive F:". Changed my secondary hard drive, where my music is stored and I wanted to install iTunes, to F. Installation went through just fine.
-
Changing name of PCD object EP 6.0 SP11
Hello, in connection with the introduction of a new name standard I need to change the name, id and prefix of a number of iviews and pages. I do this by using the "Change id" command. The prefix and id are changed, but I am unable to change the name.