Article View: borland.public.jbuilder.java.swing
Article #11547Re: JComboBox question
From: Jason Tam
Date: Fri, 21 May 1999 00:00
Date: Fri, 21 May 1999 00:00
30 lines
1361 bytes
1361 bytes
Hi all,
Anybody can showing me sample coding about using the ListModel with
JComboBox?
Anyway, I feel so frustrated because my JComboBox' dropdown list usually
disappear upon a mouseclick. I think it is because of the heavy-light weight
problem. But I can find no solution :~
Thx in advance
Mohammad Hamad wrote:
> Alexis Rios wrote:
>
> > Why when I add an item to the JComboBox the item does not appear after is
> > added.
> >
> > Example:
> >
> > String s = JlblOne.getText();
> > JcboFound.addItem(s);
> >
> > The item is supposed to be added but does not appear on the combo when I
> > click on it.
> >
> > Help
>
> For JComboBox and JList, try to create a ListModel and use the new methods to
> add or remove from the list.
>
> M.Hamad
Technical Details
Message-ID:
<3744AFCA.207843CB@intern.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7elnmi$4tt8@forums.borland.com> <372ECE22.3C612EC5@math.birzeit.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,4cc2568a011ad4de X-Google-Attributes: gid111d45,public From: Jason Tam <jtam@intern.com> Subject: Re: JComboBox question Date: 1999/05/21 Message-ID: <3744AFCA.207843CB@intern.com> X-Deja-AN: 480336818 Content-Transfer-Encoding: 7bit References: <7elnmi$4tt8@forums.borland.com> <372ECE22.3C612EC5@math.birzeit.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing