Listing the objects in the particular frame

I have just started to refresh Swing. I want all the objects available in the particular frame.
Ex. I have a login frame. I want all the objects available in the frame.
ie.
objects of two textfields.
objects of two labels (un and pwd)
submit button
cancel button .
How to perform this ?

Hi,
use Container#getComponents()
NB : On JFrame (or JDialog) , you should use getContentPane().getComponents().
Nico

Similar Messages

  • List the used ABAP objects

    Hi all,
    I'm looking for a standard tool to list the used ABAP objects (Reports, Include, Function Group, CLASSes) in a time
    frame of one year or at least since the start-up.
    My goal is the identification of the obsolete custom developments to dismiss it.
    I have found the transaction SCOV but the goal of this transaction is the estimation of the code
    coverage during the test.
    Anyone can help me?
    Thanks in advantage

    This kind of data is stored in table MONI - Monitor table MONI (summarized cluster table!) and in some files of the application server (in the OS behind SAP)
    - Transaction STAT or ST03n use data stored in these tables
    - Some FM like [SAPWL_SERVLIST_GET_LIST|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=sapwl_servlist_get_list&adv=false&sortby=cm_rnd_rankvalue] and  [SAPWL_WORKLOAD_GET_STATISTIC|https://www.sdn.sap.com/irj/scn/advancedsearch?query=sapwl_workload_get_statistic&cat=sdn_all] may be used to get the data from each application server
    (click on the links to get more information and samples on how to use these FM)
    Regards

  • How to get the connected Adapter Object for a particular BDoc Type?

    Hi All,
    I have a scenario in which CRM system is connected to ERP system.
    In SMW01 transaction, I can see one BDoc with BUS_TRANS_MSG as the BDoc Type in CRM.
    Now, how do I get to know if this one BDoc is a SALESDOCUMENT or SALESCONTRACT.
    Is there any way thorough which I can get to know the Adapter Object for this particular BDoc.
    Regards,
    Madhuri

    Hi Madhuri,
               Happy new year.
    In Transaction : R3AC1.
    You can observe the Linked BDOC for the adaptor objects. For example Sales docuemnt and Sales contrcat will have the same linked BDOC as "BUS_TRANS_MSG".
    If you see an error in SMW01, you want to find whether it is salesdocument or contract.
    1. Please take the Queue name from SMW01.
    from the queue name you can find whether it is sales contract or sales document.
    Queue name is customized in tables: SMOFQFIND.
    I hope this helps you.
    regards,
    Sri...

  • How do I go directly from one frame to another particular frame which is far away in the time line? (e.g the two frames are separated by 100 frames)

    How do I go directly from one frame to another particular frame which is far away in the time line? (e.g the two frames are separated by 100 frames). I mean, is it possible to take the playhead from one frame to another frame directly which is 100 frames away in the time line? Thanks for any reply.

    In the Timeline, go to the first frame and press M to put a marker on it. Go to the other frame you want to jump to and put a marker on that one too.
    Now press Ctrl+Semicolon to go to the previous marker - or Ctrl+Comma to go to the next marker.
    Andy

  • How can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order

    how can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order? I can't seem to identify the sender in the details list.

    Start a separate thread to the original sender.

  • To restrict a object to a particular Group in the Universe

    Hi,
    I have a object which should be restricted only to a particular group.So when i define the universe we have to have explicit security that will restrict access to this object information from reports and from ad-hoc queries.I should restrict the object only to the particular group by a role based security.
    Please help me out in this case.
    Thanks in advance,
    Madan

    Hi Madan,
               U can restrict the Object to Particular group or User
    In designer go to tools menu and click on manage security and
    manage security restictions here u can add new restriction and
    as well as add user or group.

  • To restrict a object to a particular Group at the Universe level

    Hi,
    I have a object which should be restricted only to a particular group at the universe level.So when i define the universe we have to have explicit security that will restrict access to this object information from reports and from ad-hoc queries.I should restrict the object only to the particular group by a role based security.
    Please help me out in this case.
    Thanks in advance,
    Madan

    Hi Madan,
    Please follow the below steps:
    (In Designer)
    1) Open Island Resort Marketing universe or any universe in Designer.
    2) Goto Tools -> Manage security -> Manage Access Restrictions.
    3) Click on New option - > Give the Restriction name - >click on Rows tab - > Click on Add button (New Row Restriction window comes) -> give table name For example:"Resort_Country" in the Table text box, under the Where Clause "Resort_Country.COUNTRY = @Prompt ('Which country?u2019,u2019 A',, MONO,FREE)"-> Click OK -> Click Ok.
    4) Click on Add user or group - >Select the user ->Ok.
    5) Click on Apply -> Click OK.
    6) Save the universe and export it into the repository.
    7) Cretae the new report (webi/deski) from the user the one who belongs from this group.
    Hope above steps will helps you.
    Regards,
    Deepti Bajpai

  • How to implement tooltip for the list items for the particular column in sharepoint 2013

    Hi,
    I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
    Any help will be appreciated

    We can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
    http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
    http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
    http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/

  • Alv list Unable to assign the values in the particular coloumn

    Hi,
       Can u please tell me how to asign the values for the particular list.Every time i am getting 10 characters default. if i take material desc it contains 40 char so how to increase this in the output list. ia m sending code for referal
    REPORT  ZTEST_AMIT  no standard page heading line-size 350.                             .
    tables: mseg,mkpf.
    TYPE-POOLS: SLIS.
    DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
          IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          L_LAYOUT type slis_layout_alv,
          x_events type slis_alv_event,
          it_events type SLIS_T_EVENT.
    DATA: BEGIN OF ITAB OCCURS 0,
          VBELN LIKE VBAK-VBELN,
          POSNR LIKE VBAP-POSNR,
          MALE(40) type c,
          female(20) type c,
         END OF ITAB.
    SELECT VBELN
           POSNR
           FROM VBAP
           UP TO 20 ROWS
           INTO TABLE ITAB.
    X_FIELDCAT-FIELDNAME = 'VBELN'.
    X_FIELDCAT-SELTEXT_L = 'VBELN'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 1.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'POSNR'.
    X_FIELDCAT-SELTEXT_L = 'POSNR'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 2.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'MALE'.
    X_FIELDCAT-SELTEXT_L = 'MALE'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 3.
    x_fieldcat-just = 'C'.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'FEMALE'.
    X_FIELDCAT-SELTEXT_L = 'FEMALE'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 23.
    x_fieldcat-just = 'C'.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
      x_events-NAME = SLIS_EV_TOP_OF_PAGE.
      x_events-FORM = 'TOP_OF_PAGE'.
      APPEND x_events  TO iT_EVENTS.
      CLEAR x_events .
      L_LAYOUT-NO_COLHEAD = 'X'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = sy-repid
       I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
       IS_LAYOUT                      = l_layout
       IT_FIELDCAT                    = it_fieldcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
       I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
       IT_EVENTS                      = it_events
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
       I_SCREEN_START_LINE            = 0
       I_SCREEN_END_COLUMN            = 0
       I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       = itab
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM TOP_OF_PAGE.
    *-To display the headers for main list
        FORMAT COLOR COL_HEADING.
            WRITE: / SY-ULINE(103).
        WRITE: /   SY-VLINE,
              (8) ' ' ,
                   SY-VLINE,
              (8)  ' ' ,
                   SY-VLINE,
              (31) '***'(015) centered,
                   sy-vline.
        WRITE: /   SY-VLINE,
    (8)        'VBELN' ,
                   SY-VLINE,
    (8) 'POSNR'(014) ,
                   SY-VLINE,
              (15) 'MALE'(020) ,
                   sy-vline,
               (13)  'FMALE'(015) ,
                   sy-vline.
        FORMAT COLOR OFF.
    ENDFORM.

    Hi Amit,
    define a internal table and append the value outputlen =40 in it
    Try this code
    Types: struct type table of slis_fieldcat_alv occurs 0.
    struct-outputlen = 40.
    append struct.
    Regards,
    Amit Bhadauria
    Message was edited by: amit bhadauria
    Message was edited by: amit bhadauria
    Message was edited by: amit bhadauria

  • How to find the list of Keyfigures in a particular Extractor RSA3

    Hi,
    I have a list of extractors where I need to find out Keyfigures for all the extractors.
    do we have any table or program to list the keyfigures for a particular extractor.
    That would be really a great helpful.
    Thank you in advance.
    Regards,
    Prem

    Hi Prem ,
    1. Go to tcode - RSA2.
    2 . Give the extractor name in the datasource field  and choose display.
    3.  you can view the keyfigures of the extractor over there .
    Regards,
    Lokesh

  • Need to find out the list of objects under a Transport

    Hi ,
    My requriement is to programatically find the list of objects under the Transport.
    I tried using the table E071 but no luck is there any FM or table which gives me the list of objects assigned to the transport request
    Regards,
    kk

    TYPES: BEGIN OF ty_tasks,
            trkorr TYPE trkorr,
            trstatus TYPE trstatus,
            strkorr TYPE strkorr,
            as4user  TYPE tr_as4user,
           END OF ty_tasks,
           BEGIN OF ty_object,
            trkorr TYPE trkorr,
            as4pos TYPE ddposition,
            pgmid TYPE pgmid,
            object TYPE trobjtype,
            obj_name TYPE TROBJ_NAME,
            lang TYPE spras,
           END OF ty_object,
    SELECT-OPTIONS : so_trans FOR e070-trkorr
    *selection from table e070.
      SELECT trkorr
             trstatus
             strkorr
             as4user
             FROM e070 INTO TABLE it_tasks
             WHERE strkorr IN so_trans or
                   trkorr in so_trans.
    IF SY-SUBRC = 0.
    *selection from table e071 to get all the objects
    *under the respective task/request.
    data: g_trans type e070-trkorr,
          g_strkorr type e070-strkorr.
      SELECT trkorr
             as4pos
             pgmid
             object
             obj_name
             lang FROM e071 INTO TABLE it_object
             FOR ALL ENTRIES IN it_tasks
             WHERE trkorr = it_tasks-strkorr.
    hope it might be helpfull.
    regards ,
    aby

  • How to get all the objects in a  stack frame

    Hi, what I'm trying to do is get all the objects on the top of the stack and time stamp them.
    What I have is this:
    static void mearthScanStack(jvmtiEnv *env, jmethodID method, jthread thread){
           jobject obj;
           int i;
           jlong tag;
           jvmtiError err;
           jvmtiLocalVariableEntry *localVarTable;
           jint entryCount;
              err = (*env)->GetLocalVariableTable(env, method, &entryCount, &localVarTable);
              if(err == JVMTI_ERROR_ABSENT_INFORMATION || err == JVMTI_ERROR_NATIVE_METHOD){
                   return;
              check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get local variable table");
              for(i = 0; i < entryCount; i++){
                   if( (localVarTable.signature)[0] == 'L'){
                        err = (*env)->GetLocalObject(env,     thread, 0, localVarTable[i].slot, &obj);
         check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get local object");
                        err = (*env)->GetTag(env, obj, &tag);
                        check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get tag for local object");
                        timeStampObject(env, obj);
              (*env)->Deallocate(env, localVarTable);
    }To walk through, first I get the local object variable table, then I loop through each entry in the table. I check each entries signature to see if it is an object (starts with "L"), and if it is, I try get its tag, and time stamp it.
    This doesn't seem to work, however, because I get JVMTI_ERROR_INVALID_SLOT errors on the call to GetLocalObject. How can it be an invalid slot if I am getting the slot out of the local variable table?  Am I going about this the right way
    Additionally, when I get the the table, I'm ignoring the JVMTI_ERROR_ABSENT_INFORMATION error. I'm not exactly sure under what circustances this information is absent. Is there a way I could scan the stack frame even if it is not available (just probe through the slots maybe?)
    Any help is greatly appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I would think if you intanciate the XMLReference and use IIDXMLElement GetChildCount / GetNthChild would do what you are looking for.
    Ian

  • How does one Float a Graphic Object with Text? (Don't want the Graphics Frame stationary)

    I now know just enough InDesign to be dangerous.  So, help me from blowing myself up.
    SITUATION:
    I desire a Callout/Quote Box to emphase a quote--to separate it from the flowing text of the manuscript.  So, I created a curved-edge rectangle (graphic object) to make the "box", then filled it with the quoted text).  All was well in the land of Adobe Novice UNTIL I deleted some text above the newly-created graphic box/quote box.  I need the graphic to flow with (stay embedded in; hold its position in) the text outside the manuscript, not say anchored to page.
    QUESTION:
    Is there a way to have a graphic object which is placed in a manuscript flow with the manuscript text, so that it "holds its position" relative to the text.  For example, if I delete a paragraph of text above the graphic object, I want the graphic object to adjust accordingly.
    ASIDE:
    I am open to any other tricks or methods others use to insert callout or quote-boxes within the flowing text of a manuscript/book.
    Thanks in advance.

    Create your callout. If you will use it often, you can actually grab it and drag it to the desktop for reuse in any Document; it becomes an InDesign Snippet (.inds).
    Copy the callout graphic, insert your text curser into the text frame where you want the callout. You've just Anchored an Object.
    This is where you want to read up on Anchored Objects. You can highlight and baseline shift the callout (often necessay for anchored objects) , change leading, apply text wrap with standoff (you would select it with the selection tool for this), all of which are way beyond what I have ever tried, but managed it in less than 3 minutes. Basically treat it as a selection of type. The challenges will be line breaks, keep with, gosh knows.
    Bob mentioned CS5.5 has more friendly features, which I am not familiar with, and are beyond quick replies.
    Work through the above at your discretion, ask more DIRECT questions as needed, and you will get help. 

  • Why after I add a object to a list, the whole list changes?

    I tried to call the add method of ClientList from a jsp webpage,
    by looking at the log file, i found that for the 2nd time insert an Object into clientlist (say
    client 1 is: IPAddress= 167.30.22.33
    client 2 is IPAddress=167.30.22.44), what i get from the system log is that I have two
    167.30.22.44 in the list, the first one is gone,
    after I add the third item, the list just contains three identical third item, the former two are gone,
    What 's wrong with my code? From the system log, I know that the parameters passed to the method clientlist.add are correct.
    thank you.
    My code is like this :
    public class ClientList {
    ArrayList<Client> listitems = null;
    int numberOfItems = 0;
    public ClientList()
              items = new HashMap<String, ClientListItem>();
              listitems = new ArrayList<Client>();
    public synchronized void add(
    Client cl) {
    if (items.containsKey(cl.getIPAddress())) {
                   ClientListItem clitem = (ClientListItem)items.get(cl.getIPAddress());
                   clitem.incrementQuantity();
    } else {
                   System.out.println("clist.add called: " + cl.getIPAddress() + "\n");
                   ClientListItem newItem = new ClientListItem(cl);
                   items.put(cl.getIPAddress(), newItem);
                   listitems.add(cl);
                   for (Iterator i = listitems.iterator(); i.hasNext(); )
                        Client clt = (Client)(i.next());
                        System.out.println("after adding : " + clt.getIPAddress() + "\n");
    }

    I'm willing to bet that what is happening here goes as follows:
    // Step 1:  Create a client 1 object
    // Step 2:  Call add with this client object creating a string key with a client value
    // Step 3:  redefine the data in the first client object with the data for the second
                 // In this step you probably did not create anew client object, but simply
                 // changed the data in the original
    // Step 4:  Call add with the "redefined" client object comparing the string key with
                 // some data from the client, determining it is not in the list adding it againWhat the above does (if this is the way you are doing it) simply places the same client
    object into the hash twice with two different keys. And in step 3, by changing the original object,
    you also changed the object already in the hash, because as already said, they are the same object.
    Edit: And nevermind, jverd already said this. ;-)

  • Query to find the list of BP without having Particular GL transactions.

    Hi Experts,
    I want the query to find the List of Business partner who is not having Journal entry for Certain General ledger.
    Scenario: we are creating JE for TDS posting.
    so, i want to know the list of BP , who and all not having particular TDS GL for the particular period.
    Thanks in advance,
    Dwarak

    Hi Dwarak,
    Sure, no problem
    DECLARE @AcctCode AS NVARCHAR(100)
    SELECT @AcctCode=T0.AcctCode FROM OACT T0 WHERE T0.AcctCode='[%0]'
    DECLARE @DateFrom AS DATETIME
    SELECT @DateFrom=T1.RefDate FROM JDT1 T1 WHERE T1.RefDate=[%1]
    DECLARE @DateTo AS DATETIME
    SELECT @DateTo=T2.RefDate FROM JDT1 T2 WHERE T2.RefDate=[%2]
    SELECT CardCode FROM OCRD WHERE CardType='S'
    AND CardCode NOT IN(
    SELECT DISTINCT ContraAct FROM JDT1
    WHERE Account=@AcctCode AND RefDate BETWEEN @DateFrom AND @DateTo)
    Ok, now, here's the problem that I just encountered. This query will work, but, no matter how we fill the parameter, it will show you the very same result. To be honest, I don't know what's wrong with this query.
    If you change all the variables ( @AcctCode and @DateFrom and @DateTo ) directly, it will give you the accurate result. Take this as an example:
    SELECT CardCode FROM OCRD WHERE CardType='S'
    AND CardCode NOT IN(
    SELECT DISTINCT ContraAct FROM JDT1
    WHERE Account='10030201' AND RefDate BETWEEN '2011-09-01' AND '2011-09-20')
    I hard-code the account code, date from and date to for selection. System will show you the accurate result, but using parameter as in first query, system show same result no matter how we fill the parameter.
    Sorry, it seems that I could only partially solved your problem here. I already tried to create a stored procedure and executing the stored procedure with parameter, but still, somehow SBO show very same result no matter if we change the parameter.
    So, my solution need user to manually change the parameter in query. I know, this is a stupid solution, I'm afraid I can't help you to achieve perfect solution here. Maybe anyone here in the forum could guide me to fix my mistake in first query and how to rectify it?
    Best Regards,
    Hendry Wijaya

Maybe you are looking for

  • Shared services and Filter

    Hi Guru's how can i assign a filter to a group in shared services. I have created one group in shared services and filter in EAS.Do i have to click on export to shared services ? where in shared services will i see my filter to make it effective on t

  • As Few Case AS possible

    Hi all, Please let me know what is the best way to tackle the simple problem below with as few case structure as possible. input: a 1D array of 2 elements. ideal (if possible): there would be a case structure with 3 cases plus a default case.  The co

  • FileReference ProgressEvent

    Hi, After scratching my head for months about a ProgressEvent issue I decided to post my problem. I've been searching the web for a long time about my problem and all I could find was people with similar problems.. But none of them had a solution. I'

  • No icons in iTunes Store nor in iBookstore

    Tonight I opened the Store from iBooks and every book showed a blank cover. Same thing in the Apps section of iTunes Store: a blank square, no icons. Anyone seen this as well ?

  • New tax code for non excisable plant

    Dear all Please suggest solution for following scenario We created new comp. code and assign new plant, this plant is non excisable, my problem is that can I used same tax code which is I created earlier for first co. code or I have to create new tax