🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Custom cell renderer for JList

#7961
From: Sam
Date: Wed, 15 Nov 2000 00:00
15 lines
985 bytes
Hello all-

I am trying to create a list (using defaultListModel) that consists of
items of either bold or normal text depending on whether the item was
accessed.

I have created a custom cell renderer class according to examples I've
found in various places, but whenever I change a font/color of one item
of the list the entire list changes.

Can someone give me some hints on how to do this or other places to look
for examples?

Thanks
Sam
Technical Details
Message-ID: <3A12D00B.A1FC637C@home.com>
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: 111d45,87dde9ec7baa975e,start
X-Google-Attributes: gid111d45,public
From: Sam <ssac@home.com>
Subject: Custom cell renderer for JList
Date: 2000/11/15
Message-ID: <3A12D00B.A1FC637C@home.com>
X-Deja-AN: 693988706
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 15 Nov 2000 10:04:00 -0800, 24.113.3.107
Organization: @Home Network
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing