🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11640

Re: JComboBox question

#11640
From: Mohammad Hamad
Date: Tue, 04 May 1999 00:00
20 lines
966 bytes
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: <372ECE22.3C612EC5@math.birzeit.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7elnmi$4tt8@forums.borland.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: Mohammad Hamad <hamad@math.birzeit.edu>
Subject: Re: JComboBox question
Date: 1999/05/04
Message-ID: <372ECE22.3C612EC5@math.birzeit.edu>
X-Deja-AN: 473861232
Content-Transfer-Encoding: 7bit
References: <7elnmi$4tt8@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Birzeit university
Mime-Version: 1.0
Reply-To: hamad@math.birzeit.edu
Newsgroups: borland.public.jbuilder.java.swing