🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to use IDE to populate JList?

#10005
From: Greg Hamer
Date: Thu, 09 Dec 1999 00:00
20 lines
1552 bytes
'designer friendliness' was not high on the list  of considerations that
went into making swing. The
dbswing component  JdbList extends JList to provide some properties that
make it easier to use in the designer, such as an items property so that
the component can be intialized with a static list of data . If you use
JList, one thing you can do is select the model property in the inspector
and then use the context menu and select "Expose as class level vairable".
This will cause a variable for the list model to appear under the 'Others'
folder. The ListModel still does not expose any usefull properites for
intializing the data, but it does expose the events so at least the events
can be wired up.

Janene McCrillis wrote:

> I've been struggling with how to place a JList in a pane and add items
> to it, for a static list. Surely there is a way to do this via the IDE,
> versus coding the ListModel by hand?  TIA!
>
> Janene McCrillis
> janene.r.mccrillis@lmco.com
Technical Details
Message-ID: <38502BCE.C8CEF0B0@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38501DF4.A9489EFE@lmco.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e410537f9c720843
X-Google-Attributes: gid111d45,public
From: Greg Hamer <ghamer@borland.com>
Subject: Re: How to use IDE to populate JList?
Date: 1999/12/09
Message-ID: <38502BCE.C8CEF0B0@borland.com>
X-Deja-AN: 558750260
Content-Transfer-Encoding: 7bit
References: <38501DF4.A9489EFE@lmco.com>
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