Results 1 to 4 of 4
  1. #1
    dave_gardner is offline Member
    Join Date
    Mar 2010
    Posts
    5
    Rep Power
    0

    Default Setting/Updating a tabbed JPanel's name

    I am currently writing a program for my final year project and have stumbled across a hurdle in designing my GUI.

    I want to label my tabs to the names of the different subsets of data that my program uses. The problem is the data isn't read in from file until runtime, so I can set the name of the tab when they are created.

    I have got them set to "Group 1", "Group 2" etc at the moment but I am looking for a way to update them when a user gives the group a more meaningful name.

    I have a title JLabel for each tab which is updated with the setText() method, but I can't seem to find an equivalent method for the tabbed panel

    Any help would be greatly appreciated,

    Regards,
    Dave Gardner

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    6

    Default

    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    dave_gardner is offline Member
    Join Date
    Mar 2010
    Posts
    5
    Rep Power
    0

    Default

    Thanks very much for the quick reply.

    I was going wrong by trying to find a way to set the properties of the panes within the main JTabbedPane rather than the main JTabbedPane itself

    Regards,
    Dave

  4. #4
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    6

Similar Threads

  1. Replies: 5
    Last Post: 11-09-2009, 06:12 PM
  2. tabbed Pane .
    By programmer_007 in forum AWT / Swing
    Replies: 2
    Last Post: 09-03-2009, 08:52 PM
  3. Replies: 3
    Last Post: 04-20-2009, 11:31 PM
  4. JTree and Tabbed Pane
    By paluee in forum AWT / Swing
    Replies: 1
    Last Post: 03-30-2009, 06:03 AM
  5. AWT can we make a Tabbed container?
    By Panchitopro in forum AWT / Swing
    Replies: 0
    Last Post: 05-15-2008, 10:31 PM

Tags for this Thread

Posting Permissions

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