🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Specialised Cell Rendering

#10247
From: Zippy
Date: Wed, 03 Nov 1999 00:00
27 lines
1895 bytes
Just a suggestion but at www.Genimen.com  They have developed a set of
(WORKING!) Components for the JdbTable and even have posted a fixed
JdbTable ... (Hats off to the people at Genimen !) - By examing some
of there table components you can gain an insight into how to work
yours (I hope)...

>Hi everyone,
>
>Can anyone help with this frustrating little problem ......
>
>I've got a JdbTable into which I load date tagged data.  I want to be
>able to highlight any date more than x days ago by showing the cell
>with a different background colour.  My cunning plan was to hook into
>the rendering process and override getTableCellRendererComponent(...)
>to test the value in the cell and set the background colour of the
>renderer appropriately, but ..... JdbTable uses a Public Member class
>DBCellRenderer  and I'm trying to define a class with public class
>SpecialRenderer extends JdbTable.DBCellRenderer but the compiler
>complains that it can't find DBCellRenderer in class JdbTable.
>
>Am I attempting the impossible (I'll admit that I'm not too well up on
>Inner Classes et al) or can someone suggest another way of achieving
>the same result.
>
>Thanks in advance.
>
>Andy
Technical Details
Message-ID: <3823c032.3117437@news.pangea.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <381F34C7.A11E3D0C@dial.pipex.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c3e8243d03a16664
X-Google-Attributes: gid111d45,public
From: Zippy@Pangea.ca (Zippy)
Subject: Re: Specialised Cell Rendering
Date: 1999/11/03
Message-ID: <3823c032.3117437@news.pangea.ca>
X-Deja-AN: 543818454
Content-Transfer-Encoding: 7bit
References: <381F34C7.A11E3D0C@dial.pipex.com>
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@pangea.ca
X-Trace: pumpkin.pangea.ca 941605503 31239 207.161.110.34 (3 Nov 1999 05:05:03 GMT)
Organization: Oats
Mime-Version: 1.0
Reply-To: Zippy@Pangea.ca
NNTP-Posting-Date: 3 Nov 1999 05:05:03 GMT
Newsgroups: borland.public.jbuilder.java.swing