Article View: borland.public.jbuilder.java.swing
Article #1495Re: ComboBoxModel
From: Jacklondon Chen
Date: Mon, 15 Dec 2003 06:13
Date: Mon, 15 Dec 2003 06:13
30 lines
1841 bytes
1841 bytes
I think the default model of JComboBox should be DefaultComboBoxModel , that
can make us to write less code.
But java has so many bad "default".
"Jacklondon Chen" <jacklondon.chen@tom.com> д����Ϣ����
:3fdd32b5$1@newsgroups.borland.com...
> Do not use ComboBoxModel, it work something like as AbstractComboBoxModel,
> can do nothing.
> Use DefaultComboBoxModel .
>
> DefaultComboBoxModel defaultComboBoxModelData = new
> DefaultComboBoxModel();
> JComboBox jComboBoxData = new JComboBox(defaultComboBoxModelData);
> defaultComboBoxModelData.addElement("hello");
> defaultComboBoxModelData.addElement("heihei");
>
>
>
> "Tzel" <stzelis@yahoo.gr> �� ? :3f143b59$1@newsgroups.borland.com...
> > How could i put data to a ComboBox using the ComboBox model?
> >
> > Any examples or sites would be appreciatable
> >
> > Thanks
> >
> >
>
>
Technical Details
Message-ID:
<3fdd5106@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f143b59$1@newsgroups.borland.com> <3fdd32b5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,80c2106396f99c07 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-12-14 22:22:04 PST Reply-To: "Jacklondon Chen" <jacklondon.chen@tom.com> From: "Jacklondon Chen" <jacklondon.chen@tom.com> Newsgroups: borland.public.jbuilder.java.swing References: <3f143b59$1@newsgroups.borland.com> <3fdd32b5$1@newsgroups.borland.com> Subject: Re: ComboBoxModel Date: Mon, 15 Dec 2003 14:13:58 +0800 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 210.22.158.131 Message-ID: <3fdd5106@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071468806 210.22.158.131 (14 Dec 2003 22:13:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail