How to find name of tab in a JTabbedPane?

I have some panels added to different tabs in a JTabbedPane. I want to get the name associated to the tab that the user clicks on. I tried a search on the forum but couldn't find anything.
I have the below method that will tell me when I changed tabs, but what now?
tabbedPane.addChangeListener(new javax.swing.event.ChangeListener() {
  public void stateChanged(javax.swing.event.ChangeEvent event) {
    System.out.println("Changed tabs.");
});Thanks for any/all help!

Thank you for your reply. Although I could have done without the smart ass comment, I still appreciate your help!
For those of you comming across this thread in a search, here is the solution:
tabbedPane.addChangeListener(new javax.swing.event.ChangeListener() {
  public void stateChanged(javax.swing.event.ChangeEvent event) {
    javax.swing.JTabbedPane tab = (javax.swing.JTabbedPane)event.getSource();
    String strTabName = tab.getTitleAt(tab.getSelectedIndex());
    System.out.println(strTabName);
});

Similar Messages

  • How to find name of partner based on partner number

    Hello All,
    Can any one help me how to find name of partner based on partner number.
    Regards,
    Lisa

    SELECT kunnr name1 erdat
              FROM kna1
              INTO TABLE i_kna1
              WHERE erdat IN s_date.
      SELECT kunnr kunn2 knref vkorg vtweg spart
                    FROM knvp
                    INTO TABLE i_knvp
                    FOR ALL ENTRIES IN i_kna1
                    WHERE kunnr = i_kna1-kunnr AND
                    vkorg IN s_vkorg AND
                    vtweg IN s_vtweg AND
                    spart IN s_spart AND
                    parvw = 'ZR'.
      LOOP AT i_kna1.
        READ TABLE i_knvp WITH KEY kunnr = i_kna1-kunnr.
        IF sy-subrc = 0.
          MOVE-CORRESPONDING i_kna1 TO i_cust2.
          MOVE-CORRESPONDING i_knvp TO i_cust2.
          APPENd i_cust2.
       endif.
      ENDLOOP.
    *SELECT kunnr name1
              FROM kna1
              INTO TABLE i_kna1.
      loop at i_cust2.
        read table i_kna1 with key kunnr = i_cust2-kunn2.
         IF sy-subrc = 0.
           i_cust2-name2 = i_kna1-name1.
        modify i_cust2.
      endif.
    endloop.*
    icust2 will have partner number ,....partner name is in KNA1,..
    so look in tat ..by above code.._ if this is wat u r luking for

  • How to find the Attribute Tab for 0MOVETYPE?

    Hi All,
    I am trying to create the Attributes for 0MOVETYPE as per T156HT table. I am not able to find the Attribute tab. Please can you suggest me how to get T156HT data using Generic Datasource structure in BW or Is there any way to get R/3 structure in BW?
    Regards,
    Kiran

    T156HT is text table.
    You need to load only text ? It doesnt have any attibute.
    Go to RSD1
    Give your infoobject name.Check under master data/text tab if you have ticked "Text".
    You can create generic text datasource using table RSO2.
    Hope this helps.

  • How to find name of report if I know name of instance and location of instance in Output File Store

    Hello all,
    can somebody help me to find name of the report if I know name of report instance and also location of instance in Output File Store. It should be done via Query Builder.
    It is ...rpt file as output from Crystal Reports. I tried few commands in Query Builder but usually they finished with timeout error.
    Could you help me and send specific command? Or way how to change timeout of Query Builder?
    Thanks.
    matus

    Hello all,
    We finally found solution.
    We knew that file is located on path .../Output/a_145/009/002/133521/~ce10c.....9332.rtf
    This file has more than 2 GB. We tried to find which report is related and provide necessary actions.
    As I mentioned we still failed due to timeout error - There was an error retrieving data from the server: CMS operation timed out after 9 minutes.
    So we tried to use our testing environment. We started there QueryBuilder and there we successfully tested that we found details about files from FileStore /like Name of the report in Launch Pad, CUID, ...
    SELECT SI_NAME, SI_CUID, SI_FILES FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/a_148/020/000/5268/'
    or
    SELECT * FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/ a_148/020/000/5268/'
    Best regards,
    matus

  • How to find name of the Query in SE09

    Hi Experts,
    Can anyone tell me how do find the name of the Query which is not released.
    Like for example:
    When I try to open the modified requests of all the users It displays me the names of the Tables, WEB templates etc. But for Query it only shows the Elements of Query Builder only some junk data.
    Please help me understand which query request that is.
    Thanks

    Do you have the TR no. which is released for the query.
    if you go there and check in SE09, it would show you the query name i guess which are the objects included in the request.
    Try this and hope this would  help you.

  • How to find Active Dynamic tab (disclosed) UIComponent?

    Hi all,
    I newbie to Fusion App. extension, preparing a separate application to integrate. My application consist of multiple taskflows and will be opened as seaparate tabs (uses the default UIShell) template. As a part of my application, I may require to do some coding in managed bean to refresh UI components resides inside my page. To make it happen, I need to find the Acitve tab first (i.e. the one that is disclosed).
    Question:
    Does fusion app provides any API or util (say DynamicTabUtil.findComponent(String pComponentId) -- suppose to search component not from view root but the Active tab) to find the current Active dynamic tab component? If so, please let me know the documentation link. If not, is there any way to get this done. (To get this done, I should aware of the standard oracle uses in generating ids for Dynamic tab).
    Thanks in Advance.
    Ragu

    Sorry for the delay in response.
    Jdeveloper version is 11.1.1.6.3, working for Fusion HCM, have to create an extension project to accomodate some additional functionalities.
    Explanation:
    Application is based on UIShell template, can open task-flows under dynamic tabs. Same screen (i.e. same task-flow id) can be opened multiple times since every task flow has its own transaction. As a part of functionality, I require some coding to be done in managed bean to access some UIcomponent and refresh it. Since same screen can be opened under multiple dynamic tabs, I should not start searching the required screen level UIcomponent from root, instead I need to find the Active Dynamic tab component first (i.e. currently disclosed dynamic tab) and then my screen component.
    Scneario:
    Assume Screen A has an SSN input text fidl with id 'ssnFldId'.
    1. User opens Screen A under a dynamic tab (it becomes first tab)
    2. User opens Screen A again under a new dynamic tab (it becomes second tab and Active)
    3. Based on the screen functionality, UIComponent of SSN field belongs to the second tab needs to be accessed. I know I cannot start searching for this component from root but to pick the correct dynamic tab first, followed by this component.
    Question:
    1. Is there any direct API available (say DynamicTabUtil::getActiveTab()) that returns the dynamic tab UIComponent.
    2. If not, how to find it?
    When I was working ADF Application development using Dynamic Tabs, I was able to access the initial version of Dynamic tab source (4 yrs back), customized for our need, worked with that source, hence I knew how the id gets generated for tab, was able to work with that, don't know how it is in Fusin Apps. Your help would be appreciated.
    Thanks in Advance.
    Thanks,
    Ragu

  • How to find name for a query

    i want to know one thing how the name for the report is made.
    Transaction code      ZPNL_TESTDEMO
    Package               ZDEV
    Transaction text      FGI3 P&L REPORT
    Transaction        START_REPORT
    D_SREPOVARI-REPORTTYPE = RE
    D_SREPOVARI-REPORT
    D_SREPOVARI-EXTDREPORT
    D_SREPOVARI-VARIANT
    D_SREPOVARI-NOSELSCRN
    D_BACKGROUND_EXEC
    D_SREPOVARI-EXTDREPORT =
    FBRG01FAGLFLEXS                     ZTESTDEMO.
    the question is how to determine the name of the the report to call i.e (FBRG01FAGLFLEXS                     ZTESTDEMO)
    this is made in parameter transaction in se93.

    sorry to say about the query.....actually the report is made in report painter.
    and i am able to see it in fgi3.....
    but the issue is how can i make the transaction that can run that report directly.
    regards
    saurabh

  • Firefox using much CPU; how to find the offending tab/URL?

    My Firefox 32 .0 is using lots of CPU, and it frequently goes into "not responding" state. I restarted in safe mode, and the same condition happened. Is there any way for me to determine what tab(s)/URL(s) are causing the problem? I really do not want to start closing each of my many tabs and windows one-by-one to see which one(s) might be causing the problem. I am running Windows 7 Professional 32-bit. Thanks.
    --Barry Finkel

    I run MSE as my basic anti-malware. I also run WebRoot Security Anyware (WRSA) and Spyiit Search & Destroy. None of them has found any malware. Yesterday I ran MalwareBytes Anti-Malware (MBAM), and it did not find anything. I ran RogueKiller, but before it finished and gave me results, it told me that there was a new version available. I downloaded it and it caused a BSOD when I started it. That was the BSOD before I watched "60 Minutes" last night. I tried it again, and the second BSOD "allowed" me to do the debugging I did last night.
    I do not want to disable flash, as the weather.gov radar image I have open needs flash to display the radar loop images.
    --Barry Finkel

  • How to find names of tables created by specific user

    I have tried;
    select * from dba_tables
    and
    select * from users_tables
    and it shows 1600 + and 900+ tables resp. I just need to find out the tables created by me.
    any help or guidance is greatly appreciated.

    Hi,
    Welcome to the forum. This may help you.
    select * from dba_objects where object_type='TABLE' and owner = <user>
    select * from user_objects where object_type='TABLE'cheers
    VT

  • How to get to devices tab

    I just got a first gen Apple TV but I don't know how to find the device tab on the latest version of iTunes 11 to put in the password and synch with iTunes

    Hi there HumphriesD!
    I have an article here that can help you troubleshoot that issue a little further:
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • How to close a tab in a jtabbedpane?

    Hey all,
    how can i close a tab in a jtabbedpane with an close icon in the title of the tab (such as in JBuilder and LimeWire)?
    Thanks,
    Miklas

    Did you search the forum???
    Using keywords: "+jtabbedpane +close +icon" would be a good place to start.

  • How to find the class name of the  BO

    HI
      How to find out a class for a business object.
    For example for the Business Object FORMABSENC i want to find out the class name.
    iam not able to find out from se24 or swo1.
    Or please suggest me how can i use the method createbapistructure of this businessobject.
    Regards
    vijaya

    Hello Vijay
    When you double-click on "method" AbsenceForm.CreateBapiStructure (transaction SWO1) and switch to tab ABAP you see (on ERP 6.0) that the field Name is empty meaning this BO "method" has not yet been implemented.
    Other methods are implemented by modules of function group SWXA. Checking package SWX you will see that there are no suitable classes around for this object.
    Final remark: Methods of business objects has just a semantic meaning and has nothing to do with object orientation (i.e. classes).
    Regards
      Uwe

  • How to find out the Target Component name and Target view name

    Hi All Expert,
                      I want to know ,how to find out the target component and target view in WEB UI,when i click on a field which shows as a hyper link in WEB UI .At GUI level ,i know the how it will work.Any way to find out the component name and view name which is show the details of that field at GUI level .IF you go to transaction CRMD_ORDER then open the service contract id .then goto the item level value .there is 1 service data tab is available at item level.there is two button is available.first one is available time and second one is response time .if i click on any button then one popup is open which is shows the details of that button.I dont know how to find out the component name and view name from GUI level.
    Thanks in Advance....
    Vishwas Sahu

    Hi Vishwa,
                 The control would be something like this for navigation in Get_p_xxx method u mention as link and u mention a event name which gets triggered on the click of this hyperlink. So your GET_P_XXX method would have the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = 'EXAMPLE'.
    Now you have to create a method as EH_ONEXAMPLE at your IMPL class and within which you would give an outbound plug method. Within the outbound plug the target data would be filled in the collection and window outbound plug would be triggered.
    This is a huge topic and  i have just mentioned you basic things.
    Regards,
    Bharathy.

  • 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,
    Suri

    Hi,
        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 to find output type givenSapscript form name and print program name

    Hi  Experts,
           Can anyone tell me how to find the output type of  a sapscript form if the print program name and sapscript form name is 
    known.

    Hi,
    There are two ways:
    1. Use table TNAPR .. Here is table give PGNAM as your print program name and FONAM as form name.. Now the field KSCHL will be the output type assigned to your script.
    2. You can also check the NACE t-code.. In that select a application(Corresponds to your area) -> click on Output types tab -> Here you get list of output type.. You need click on Processing Routine folder to get all other info..

Maybe you are looking for

  • How can I download a list of import condition types used in POs (STP)

    Hi Experts, Do any of you know how can I download such a list from SAP? I'm enclosing images of what I need, it'd be great if I could have for instance an excel report of what condition types I have per material for all purchase orders in a determina

  • Double payment

    I sent a check and signed up for online payment with another payment and would like to get back one payment please.. My home number is {edited for privacy}. Thank you Wendy {edited for privacy}

  • Failed IDoc posting - MATMAS02 - Message MATMAS

    Hello Friends, I have the case of an IDoc failing to get posted when the GTIN number is included in the field EAN11 of segment E1MARMM. I get the following error message: Unit of measure for material not maintained Message no. M3 758 Why this error e

  • Accessing nested child in model to populate datafield in datagrid.

    I am using Rails + Flex and I have problems to access nested xml in a datagrid.datafield. I reproduce this in a simple mxml sample: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" wi

  • RMSBulk is not unprotecting digitally signed email messages in a pst

    The RMSBulk.exe tool is not unprotecting pst messages that are digitally signed.  Any recommendations on how to get this to work?  The tool also does not unprotect attachment that are RMS messages (so a protected message attached to a protected messa