🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Question about JList and the DefaultListModel

#18208
From: Alexander Anguiano
Date: Tue, 28 Jul 1998 00:00
11 lines
766 bytes
Hello

Can anyone explain to me why sun choose to create a AbstractListModel
instead of a DefaultListModel when you do

setit(Vector someVector) {

JList list = new JList();
list.setDataList(someVector);  //<---- it creates a abstractListModel
instead of a DefaultListModel
}
Technical Details
Message-ID: <6plkla$hvs@bgtnsc02.worldnet.att.net>
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,30da7502fdc6063f,start
X-Google-Attributes: gidf74b3,public
From: "Alexander Anguiano" <AlexAnguiano@worldnet.att.net>
Subject: Question about JList and the DefaultListModel
Date: 1998/07/28
Message-ID: <6plkla$hvs@bgtnsc02.worldnet.att.net>
X-Deja-AN: 375803427
Organization: AT&T WorldNet Services
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.language