🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14776

JList set selection

#14776
From: Leo Cohen
Date: Fri, 30 Jul 1999 00:00
17 lines
890 bytes
I want to bring up a JList with the item at (0) selected. I used 

programList.setSelectedIndex(0);

I have now tried it before and after the setVisible(true) for the
control, and it does not come up selected. 
-- 
Leo Cohen

116-1 Howard Drive
Charlottesville, VA  22903

804-243-8922 (UVA)
804-244-4648 (home)
804-244-7922 (home fax)
815-550-9313 (office fax)
lcohen@cs.virginia.edu
Technical Details
Message-ID: <37A1F50B.70190A9B@cs.virginia.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1b5aaba9f107661e,start
X-Google-Attributes: gidf74b3,public
From: Leo Cohen <lcohen@cs.virginia.edu>
Subject: JList set selection
Date: 1999/07/30
Message-ID: <37A1F50B.70190A9B@cs.virginia.edu>
X-Deja-AN: 507070319
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language