🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Clearing a JList

#11300
From: Michael Härtig
Date: Thu, 17 Jun 1999 00:00
23 lines
1378 bytes
> 
> What's the correct procedure for removing all items from a JList?  I'm
> populating the list successfully, using the following:

list.removeAll();

But it's better to use a ListModel to hold your data. 

Michael
-- 
           //// 
          (o o) 
+-----ooO--(_)--Ooo---------------------------------------+ 
|                                                         | 
| Michael H�rtig                 Neumann & Partner        | 
|                                Informationssysteme GmbH | 
| Softwareentwicklung            An der Hohen Stra�e 1    | 
|                                08393 Meerane            | 
|                                                         | 
+------------Oooo-----------------------------------------+ 
        oooO (  ) 
        (  )  (_) 
         (_)
Technical Details
Message-ID: <3768E12A.2663E86@nupis.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7kak6g$oos9@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,a1790d240a431449
X-Google-Attributes: gid111d45,public
From: Michael Härtig <haertig@nupis.de>
Subject: Re: Clearing a JList
Date: 1999/06/17
Message-ID: <3768E12A.2663E86@nupis.de>
X-Deja-AN: 490635125
Content-Transfer-Encoding: 8bit
References: <7kak6g$oos9@forums.borland.com>
X-Accept-Language: de
Content-Type: text/plain; charset=iso-8859-1
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing