Article View: borland.public.jbuilder.java.swing
Article #420Re: Preferred Event listener for jTabbedPane?
From: Kevin Dean [TeamB]
Date: Thu, 05 May 2005 12:35
Date: Thu, 05 May 2005 12:35
30 lines
2318 bytes
2318 bytes
Magnus wrote: > I have a series of tabs that are �in series� so that values entered > in the first pane are used in a ComboBox in the second and third > tabs. So when a user selects the second or third tab. I need to fill > my ComboBox with possible new values from tab 1. > > After some testing I found that stateChanged seems to be the Event to > use. Am I doing right using this event or are there better (more > appropriate) ways to deal with this? That will work, but an alternative you might consider is creating a ComboBoxModel derived class and assigning it to the JComboBox instance you're interested in. With a ComboBoxModel class, the combo box is automatically updated when the underlying list is updated. That way, you are no longer dependent on the specific user interface you choose to implement. -- Kevin Dean [TeamB] Dolphin Data Development Ltd. http://www.datadevelopment.com/ NEW WHITEPAPERS Team Development with JBuilder and Borland Enterprise Server Securing Borland Enterprise Server http://www.datadevelopment.com/papers/index.html Please see Borland's newsgroup guidelines at http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<xn0e1vud81jnfp6001-kdean@www.teamb.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42796743$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,39af497ef65f112c
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Subject: Re: Preferred Event listener for jTabbedPane?
Newsgroups: borland.public.jbuilder.java.swing
References: <42796743$1@newsgroups.borland.com>
Organization: Dolphin Data Development Ltd.
User-Agent: XanaNews/1.17.4.1
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr
p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Message-ID: <xn0e1vud81jnfp6001-kdean@www.teamb.com>
X-Ref: newsgroups.borland.com ~XNS:000001AE
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 24.57.153.235
Date: 5 May 2005 05:35:57 -0700
X-Trace: newsgroups.borland.com 1115296557 24.57.153.235 (5 May 2005 05:35:57 -0700)
Lines: 30
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail