Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2090

set Title on JTabbedPane

From "Jack" <jack@THRWHITE.remove-dii-this>
Subject set Title on JTabbedPane
Message-ID <1184874578.696170.39690@r34g2000hsd.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:37 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
I have a JTabbedPane that will have a variable number of tabs.  A
JPanel is added to each tab which contains a combobox.  When the
selection of the combobox is made, I'd like to set the value of the
tab title to the value selected.

tabbedPane = new JTabbedPane();
tabbedPane.setBounds(new Rectangle(6, 352, 901, 648));

comboBox = new JComboBox();
..setBounds...
comboBox.addActionListener(this);
comboBox.addItemListener(this);

I want to capture the event that the combobox changed but in the Panel
that contains the tabbedPane.

Suggestions are most appreciated.

Jack

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar | Unroll thread


Thread

set Title on JTabbedPane "Jack" <jack@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
  Re: set Title on JTabbedP "Ray Ma" <ray.ma@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000

csiph-web