Results 1 to 2 of 2
  1. #1
    Stephen Douglas's Avatar
    Stephen Douglas is offline Senior Member
    Join Date
    Mar 2010
    Posts
    137
    Rep Power
    0

    Default JTabbedPane issue..

    Actually i created a JFrame containing a JTabbedPane component that includes say 3 JPanels ... now whenever i call the constructor of this frame.. i.e., i execute the application.. out of the 3 JPanels the first JPanel is displayed.. in the JTabbedPane...

    But what i exactly want is that whenever the constructor is called, JTabbedPane should be displayed with the JPanel (on the 2nd place in this very component) to be displayed.
    please suggest. thnx. :cool:
    The Quieter you become the more you are able to hear !

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,004
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Stephen Douglas View Post
    Actually i created a JFrame containing a JTabbedPane component that includes say 3 JPanels ... now whenever i call the constructor of this frame.. i.e., i execute the application.. out of the 3 JPanels the first JPanel is displayed.. in the JTabbedPane...

    But what i exactly want is that whenever the constructor is called, JTabbedPane should be displayed with the JPanel (on the 2nd place in this very component) to be displayed.
    please suggest. thnx. :cool:
    Did you read the API documentation for the JTabbedPane class? The answer is right there and I bet you didn't read it. Go read it first.

    kind regards,

    Jos

Similar Threads

  1. Using JtabbedPane
    By simmi in forum AWT / Swing
    Replies: 9
    Last Post: 03-24-2010, 12:24 PM
  2. Traversing a JTabbedPane
    By Inks in forum AWT / Swing
    Replies: 12
    Last Post: 03-11-2009, 05:15 AM
  3. How to use JTabbedPane
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-27-2008, 07:50 PM
  4. Help with JTabbedPane
    By lenny in forum SWT / JFace
    Replies: 1
    Last Post: 08-07-2007, 06:18 AM
  5. Same component on all JTabbedPane
    By java_novice in forum AWT / Swing
    Replies: 4
    Last Post: 08-06-2007, 09:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •