How to display JFrame objects in a sequence

Hello,
I have several classes that extend JFrame each of which represent a GUI screen for an application. I would like to display these screens one after another. I am creating objects from these classes in another class, in the sequence I wish them to be displayed. The problem I am facing is that all the screens are being displayed at once. Please let me know how can I display these screens in the order that I want.
Please forgive me if I am out of topic as this is my first message posting.
Thanks,
Kalyan

Hello,
Thanks a lot for your help. I will definitely try it.
Thanks,
Kalyan
hi
i'm assuming that at any one time there is only one
JFrame, ie. one screen you describe is displayed at
any one time and all others are not visible.
try using CardLayout. CardLayout allows you to add
multiple components to the layout yet displays only
one component at a time in whatever order you wish.
So, have only one JFrame and add the other screens
perhaps as JPanel objects to the frame.
check the API docs on CardLayout - its quite nifty.
Takis

Similar Messages

  • Doubt , how to display ole objects in report builder

    Please tell me, how to display ole objects in report builder.
    I mean i wanted to print ole object in report, so how to do that.

    Just to clarify Lixia's response.
    In Reports 9i we have deprecated our OLE functionality. Reports created in prior versions that contain OLE objects should still run, but you will not be able to create new reports containing OLE objects.

  • How to display "Image" object in the browser?

    can anyone please tell me how can i display "Image" object in the browser?
    I have an image object that i retrieved from AS400 BLOB object by using toolbox.jar (for as400 access for java including all necessary classes like jdbc driver, security etc.).
    i want to display this object in the browser so i will be able to web-enable my BLOB objects stored on as400.thx...

    In your HTML:
    <img src="ImageServlet">
    In ImageServlet:
    Make calls to DB to get your image as byte array and store it in:
    byte[] buffer = new byte[imageSize];
    ServletOutputStream out = response.getOutputStream();
    for(int i = 0; i < imageSize; i++)
    out.write(buffer, i, 1);
    out.close();

  • How to display an object that links to another object

    I am trying to find out how display 2 objects (box's) in a frame and connect them with a line so if I move one box the line stays connected.
    Can anyone point point in the direction of any tutorials or example.
    Eventually I plan to change these box's to be a database table containing attributes and the link representing the fk.

    Eric_Davidson wrote:
    I am trying to find out how display 2 objects (box's) in a frame and connect them with a line so if I move one box the line stays connected.
    Can anyone point point in the direction of any tutorials or example.
    Eventually I plan to change these box's to be a database table containing attributes and the link representing the fk.Which part do you need help with? The drawing of the boxes, the handling of the GUI, the dragging, etc?
    Do you have any code started?

  • How to Display jFrame - chart in JSP PAge

    Hi all,
    Can any one help about this task..
    I have writeen a java file which generates multiaxis chart by using JFreeChart API....
    Say for ex..
    public class multiaxis extends JFrame
    /// till know no problem...
    Can any one tell its possible to display this chart (JFrame) in Browser (JSP Page) .. any idea over this..
    Thanks in advance

    there's examples around the forums about using JFreeChart in a servlet to generate a JPEG or PNG images.

  • How to display database object DDL...

    I am used to working with Teradata and on that database you can
    use the command show table <tablename> and it will display the
    DDL that was used to create that table. I know of the describe
    command used on Oracle via SQLPLUS. But the describe command
    doesn't show the DDL. Is there some command that will show me
    the DDL statement that was used to create the table, user, etc...

    No i dont know one but if you have sql*navigator, just right-
    click on the table and choose 'extract ddl' in the popup menu.
    Hope this helps,
    Roger.

  • Re: How to display Graphical objects over streaming video images??

    Hi, have you figured this out yet and if so, what is the answer?

    There are not just several steps that are required but also you need a very fast CPU (or you have to work with very very small images),
    The basic approach is to put the WebCam (video) input into a Processor and to add your own implementation of a "javax.media.Effect" to the processor (let's call it Overlay3DEffect).
    Then you can:
    - transform the input Buffer to a java.awt.Image,
    - get the Java3D image to be overlayed
    - overlay the WebCam image with the relavent part of the Java3D image
    -convert the resulting Image back to the output Buffer
    The above processing has to be performed In the
    public void process(Buffer in, Buffer out)
    of your effect (Overlay3DEffect)

  • How to display data in table *urgent*

    //this is the latest code that i have in client app:
    try{
         InitialContext initialContext = new InitialContext();
         Object objref = initialContext.lookup("ejb/CustomerController");
         customerControllerHome = (CustomerControllerHome)        PortableRemoteObject.narrow(objref,  CustomerControllerHome.class);
         CustomerControllerHome home = this.getHome();
         Collection c =  home.findAllCustomers(custName);
         // how to display the objects into the table
    }catch (Exception e){
            e.printStackTrace();
    // did i do this wrongly ??
    //home interface
    public Collection findAllCustomers(String custName)
               throws FinderException, RemoteException;
    //session bean
       public Collection findAllCustomers(String custName)throws FinderException{
            System.out.println("CustomerBean findAllCustomers");
            Collection cust;
            CustomerDetails custDetails;
            try{
              cust = selectAllCust(custName);
              Iterator i = cust.iterator();
              while (i.hasNext()) {
                Customer c = (Customer) i.next();
                CustomerDetails cd = c.getDetails();
            } catch(Exception fe){
            throw new EJBException ("findAllCustomers " + fe.getMessage());
            return cust;
    private Collection selectAllCust(String custName) throws SQLException{
        System.out.println("CustomerBean SelectByAllCustomers");
        makeConnection();
        String selectStatement = "Select * FROM customer ";
        PreparedStatement prepStmt =
            con.prepareStatement(selectStatement);
        prepStmt.setString(1, custName);
        prepStmt.setString(2, custPhoneNo);
        prepStmt.setString(3, custEmail);
        ResultSet rs = prepStmt.executeQuery();
        ArrayList a = new ArrayList();
        while (rs.next()) {
              a.add(rs.getString(1));
              a.add(rs.getString(2));
              a.add(rs.getString(3));
        prepStmt.close();
        releaseConnection();
        return a;
    can anybody provide some example code or tutorial.
    thank you very much ! =)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    i am developing a three tier application
    client application (GUI suses Swing )
    application server
    database server

  • How to display result of database query in JFrame?

    How to display result of oracle database query in JFrame?
    This is part of my code:
    String username, password;
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
    Statement s= conn.createStatement();
    ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
    Forget what url, username & password are. Is there any problem with my code?
    What should be next if I want to display result of the query in a table in JFrame?Thx !

    How to create JTable with unknown no. of rows? How to get no. of rows of a query?
    I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
    Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
    R contains the result of the query.
    Should it be something like this if I want to create JTable of the query?
    How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"A",
    "B",
    "C",
    while (R.next())
    // content of a row
    Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
    I can't run it because I still can't debug my code which is said before.
    Thx!

  • How To display a table that resides in the database via JFrame.

    Hi,
    I need to display the contents that present in the table that resides in my database.
    Scenario:
    Im having Main frame window, in that im having a button, while clicking that button a new JFrame should be opened & it should display all the rows & cols of dat table that resides in my DB.
    I have no prob in opening a new JFrame during a button click, but i dont knw how to display table in the table format.
    I tried JTable but i dont know how to pass the data into the JTable.
    Kindly help me out!!!

    JTable relies on a TableModel to deliver data. You have several ways of providing this data:
    - Read it into either a Vector of Vectors (list of rows containing list of columns) or an Object[][] and create the JTable while passing the data.
    - Create a javax.swing.table.DefaultTableModel, pass it to the JTable as a model, configure it and call addRow() in order to add rows.
    - Create a custom table model class; see javax.swing.table.AbstractTableModel for a convenient base class

  • How do I display AS3 Object in only one state?

    I created a AS3 object from a SWFLoader class as an animation, which I then place in a Flex stage.  I need to display the object programmatically in only one state but there is no "includeIn()" method to include it in just one state.
    Right now, it is showing up on all of the flex states.  I add this object at different times and positions in the state.  Everything is fine except it displays in all the states.
    How do I display a AS3 object in only one state?
    Thank you.

    When i use visible property as you suggested, it works, but only on one object.  I am generating more than one of these objects, so there could be 3 or 4, etc of these objects displaying concurrently at different x y positions in the state.
    Is there a way to grab all of the objects created by this AS3 class at once and apply the visible property?
    thanx

  • How to display horizontal line in top-of-page by using object oriented ALV?

    How to display horizontal line in top-of-page by using object oriented ALV.
    I am created top-of-page in object oriented alv.
    But not be successes in showing horizontal line in it.
    Can any one pls give solution for this..
    Thanks and regards..

    Hi
    Try like this
    data: gt_list_top_of_page type slis_t_listheader. " Top of page text. 
    Initialization. 
    perform comment_build using gt_list_top_of_page[]. 
    form top_of_page. 
    * Note to self: the gif must be loaded into transaction OAOR with 
    * classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions. 
    * I Loaded NOVALOGO2 into system. 
    call function 'REUSE_ALV_COMMENTARY_WRITE' 
         exporting 
    * I_LOGO = 'NOVALOGO2' 
    * i_logo = 'ENJOYSAP_LOGO' 
             it_list_commentary = gt_list_top_of_page. 
    endform. " TOP_OF_PAGE 
    form comment_build using e04_lt_top_of_page type slis_t_listheader. 
    data: ls_line type slis_listheader. 
          clear ls_line. 
          ls_line-typ = 'A'. 
          ls_line-info = 'Special'(001). 
          fgrant = xgrant. 
          concatenate ls_line-info fgrant 
          'Stock Option Report to the board'(002) 
                 into ls_line-info separated by space. 
                        condense ls_line-info. 
          append ls_line to e04_lt_top_of_page. 
    endform. " COMMENT_BUILD
    Use following syntex for footer print in alv:
    * For End of Page
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *  For End of Report
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    check this link
    http://abapprogramming.blogspot.com/
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5dc3e690-0201-0010-1ebf-b85b3bed962d
    Changing width of a custom container dynamically
    Display Page numbers in ALV
    Insert picture in selection screen.
    Logo in OO ALV Grid
    Reward all helpfull answers
    Regards
    Pavan

  • How to display the PK which is it alreday database sequence in a text field

    hi alllllllllllllll how to display the PK which is it alreday database sequence in a text field in form instance???

    2 ways,
    1) select the item in your SQL query and call it item_display - then you can treat it as a normal item with no impact on the database.
    2) Set the item to a display only item.
    Hope this helps,
    Russell

  • How to display 'List' of objects in table format

    I am trying to display bunch of records in the table format.
    I have the List of bean object populated with table datas.
    Currently the code is working fine ,if I tend to display one record.I am wondering how to display all the records.
    I know theres a 'Fieldloop'.If thats the one please explain with example.

    iterate the object list using field loop. eg. is given below
    [      <Field name='MatchTable'>
    <Display class='SimpleTable'>
    <Property name='columns'>
    <List>
    <String>title</String>
    </List>
    </Property>
    </Display>
         <FieldLoop for='name' in='userlist'>
    <Field name='username'>
    <Display class='Label'>
    <Property name='labels'>
    <ref>name</ref>
    </Property>
    </Display>
    </Field>
         <FieldLoop>
         </Field>

  • How to display a sequence in item?

    hi! well, i don´t know how to display a sequence in item. i created a sequence in sqlworkshop. now i want what the sequence will display in item(for example :P8_COD_SERVICES). I HOPE ANSWER. BYE
    (AH! I TRYNG IN ITEM.DEFAULT VALUES BUT NOTHING)

    Alvaro,
    Maybe the item source type could be SQL Query and the query would be: select seq.nextval from dual. Or you could have a before-header page computation do the same thing for the item.
    scott

Maybe you are looking for

  • File CC not picking file after module is added

    Hi Experts, I am trying to develop an sample adapter module just to pick the name of the file and put it in the payload. I managed to deploy the module through SDM and it is showing as active in the visual admin. But when I run the interace it doesn'

  • Creation of multiple PR with using BADI BBP_SC_TRANSFER_BE

    Hi, I have implemented the BADI BBP_SC_TRANSFER_BE. I want to create multiple PR with criteria in using method GROUP_RQ. But I don't understand what are the parameters use to create several PR. Dear, Julien

  • Importing music from CDs

    When I import music from my CDs to ITunes, no names of tracks or artist is shown, only "track 1" "track 2", etc. I'm told it should automatically show the track name, artist, album, etc. Help.

  • SAP - Sybase Integration

    I am begining into explore this technology. I believe Sybase accesses the RFCs in SAP using the standard connectors in Sybase. Can anyone confirm if there is any tool on the Sybase platform to monitor the transmissions between the platforms or will o

  • Can't delete a document that is declared a record (because I can't undeclare record)

    We use in-place records management with regular document libraries. Users declare/undeclare records all day long. I came across something strange where a document that was declared a record cannot be deleted. Typically, I can just undeclare the docum