Article View: borland.public.jbuilder.java.swing
Article #12461Re: Swnig components
From: Vasudevan Srinivasan
Date: Wed, 06 Jan 1999 00:00
Date: Wed, 06 Jan 1999 00:00
21 lines
1153 bytes
1153 bytes
Try using the addItem() method, to populate the combo box.
for eg:
JComboBox cb = new JComboBox();
cb.addItem("Thousands");
cb.addItem("Millions");
cb.addItem("Billions");
...
Tarryn Smith wrote:
> Hello,
> I'm doing a project in java using jbuilder and I used a swing
> component "jcombobox" to add my drop down list's items.
> Problem is I can't seem to add items to the jcombobox,
> Its is currently standing empty and i need to find out how to add
> items to my drop down box.
>
> Please any help would be appreciated.
>
> Thank you
> Tarryn Smith
Technical Details
Message-ID:
<36937254.84D16942@netrisk.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<76uv0m$cdn3@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,445d9156cae468a7 X-Google-Attributes: gid111d45,public From: Vasudevan Srinivasan <vasudevan@netrisk.com> Subject: Re: Swnig components Date: 1999/01/06 Message-ID: <36937254.84D16942@netrisk.com> X-Deja-AN: 429412649 Content-Transfer-Encoding: 7bit References: <76uv0m$cdn3@forums.borland.com> To: Tarryn Smith <tarryn.smith@spl.co.za> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing