🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ComboBoxModel

#1503
From: John McGrath [TeamB]
Date: Mon, 15 Dec 2003 23:43
31 lines
2190 bytes
On 12/15/2003 at 1:13:58 AM, Jacklondon Chen wrote:

> I think the default model of JComboBox should be DefaultComboBoxModel
> , that can make us to write less code.
> But java has so many bad "default".

The default model for a JComboBox *is* a DefaultComboBoxModel.

> Do not use ComboBoxModel, it work something like as
> AbstractComboBoxModel, can do nothing.
> Use DefaultComboBoxModel .

A DefaultComboBoxModel *is* a ComboBoxModel, so if you are using
DefaultComboBoxModel, you are using ComboBoxModel.

The DefaultComboBoxModel may be an appropriate class to use in some
(even many) situations, but it is not always the best class to use.
Without knowing some more details about the application, it is not
possible to say which is the best ComboBoxModel to use.

P.S.  There is no standard "AbstractComboBoxModel" class, but there is
an "AbstractListModel".

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <3fde551a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!priapus.visi.com!orange.octanews.net!green.octanews.net!news.octanews.net!cox.net!news-xfer.cox.net!news2.telebyte.nl!news-fra1.dfn.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f143b59$1@newsgroups.borland.com> <3fdd32b5$1@newsgroups.borland.com> <3fdd5106@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,80c2106396f99c07
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-12-15 17:09:48 PST
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: ComboBoxModel
Newsgroups: borland.public.jbuilder.java.swing
References: <3f143b59$1@newsgroups.borland.com> <3fdd32b5$1@newsgroups.borland.com> <3fdd5106@newsgroups.borland.com>
User-Agent: XanaNews/1.15.7.4
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.158.232.159
Message-ID: <3fde551a$1@newsgroups.borland.com>
Date: 15 Dec 2003 16:43:06 -0700
X-Trace: newsgroups.borland.com 1071535386 141.158.232.159 (15 Dec 2003 16:43:06 -0700)
Lines: 31
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!priapus.visi.com!orange.octanews.net!green.octanews.net!news.octanews.net!cox.net!news-xfer.cox.net!news2.telebyte.nl!news-fra1.dfn.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail