Article View: borland.public.jbuilder.java.swing
Article #8836Re: JComboBox Event Never Raised !
From: John P. McGrath
Date: Mon, 17 Jul 2000 00:00
Date: Mon, 17 Jul 2000 00:00
19 lines
1200 bytes
1200 bytes
On Mon, 17 Jul 2000 16:51:36 -0400, James Cook wrote: > JComboBox is a composite object. The down button is a > JButton that is embedded in the UI, and to get to it, > you have to iterate through the JComponent children of > the combo box. Once you find it, you can add your mouse > listener to the JButton. > > If this seems daunting, you may want to specify what you > are trying to do. There may be an alternative approach. Another reason to look for an alternative is that this makes an assumption about the implementation of the JComboBox, and that implementation could change. In fact, it could change if you use a different Swing look and feel. -- Regards, John McGrath
Technical Details
Message-ID:
<MPG.13dd90ffdde9b286989a44@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8kvp3b$c0r5@bornews.borland.com> <8kvqvi$c146@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c489b865d78a2501 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: JComboBox Event Never Raised ! Date: 2000/07/17 Message-ID: <MPG.13dd90ffdde9b286989a44@forums.borland.com> X-Deja-AN: 647610208 References: <8kvp3b$c0r5@bornews.borland.com> <8kvqvi$c146@bornews.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing