🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Adding a string to a JList

#96
From: Paul Furbacher [TeamB]
Date: Thu, 19 Jan 2006 04:28
39 lines
2367 bytes
Paul Furbacher [TeamB] wrote:

> [...]  DefaultListModel [...]

To add to what I just wrote, you should be using
the "drill down" feature of JBuilder to your
advantage.  Put the cursor anywhere in the word
"JList" in your source file, hit Control-return,
and you are looking at the source for JList.
 From there, use the Structure Pane to flip to
the "getModel()" method.  Note that it returns
an interface, ListModel.  Search the JList.java
file in your editor for "listmodel" and read the
discussions.  Or flip to the "Doc" tab, and read
them there in more nicely rendered HTML.  See
the links to the various tutorials and articles.
One in particular is well-suited to answering
your question.

Finally, drill down into DefaultListModel, and take
that lesson to the bank by using the drill down
technique to become more familiar with any API
which comes with source code.


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://info.borland.com/newsgroups/ngsearch.html

   Is it in Joi Ellis's Faq-O-Matic?
        http://www.visi.com/~gyles19/fom-serve/cache/1.html

   Finally, please send responses to the newsgroup only.
   That means, do not send email directly to me.
   Thank you.
Technical Details
Message-ID: <43cf14bf@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43ceddfe@newsgroups.borland.com> <43cf12e0$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,cce83396da78078c
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 18 Jan 2006 23:28:17 -0500
From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com>
Organization: Reverse Alchemy, Inc.
User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Adding a string to a JList
References: <43ceddfe@newsgroups.borland.com> <43cf12e0$1@newsgroups.borland.com>
In-Reply-To: <43cf12e0$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.142.194.228
Message-ID: <43cf14bf@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1137644735 69.142.194.228 (18 Jan 2006 20:25:35 -0700)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.superfeed.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail