Article View: borland.public.jbuilder.java.swing
Article #11318Re: JComboBox question
From: Alexis Rios
Date: Sun, 20 Jun 1999 00:00
Date: Sun, 20 Jun 1999 00:00
39 lines
1564 bytes
1564 bytes
Don't mix swing with awt components Jason Tam <jtam@intern.com> wrote in message news:3744AFCA.207843CB@intern.com... > 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:
<7khtn0$2487@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7elnmi$4tt8@forums.borland.com> <372ECE22.3C612EC5@math.birzeit.edu> <3744AFCA.207843CB@intern.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,4cc2568a011ad4de X-Google-Attributes: gid111d45,public From: "Alexis Rios" <alexr@coqui.net> Subject: Re: JComboBox question Date: 1999/06/20 Message-ID: <7khtn0$2487@forums.borland.com> X-Deja-AN: 491630555 References: <7elnmi$4tt8@forums.borland.com> <372ECE22.3C612EC5@math.birzeit.edu> <3744AFCA.207843CB@intern.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing