🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable, Srolling in applets, custom cell rederer, changing colors of some table rows

#12721
From: Andreas Meyer
Date: Sat, 07 Nov 1998 00:00
39 lines
2071 bytes
Hi Anne,

thank you very much. Your hints have helped me to solve some of my
problems. Now i have full
control over the color of each table cell or line. Because i am not yet
very familiar with java, i have
integrated cell formatting in the cell renderer too in order to get
locale specific date and number
fromatting. The bad thing with it is, that every line of code in the
cell renderer hurts performance.
My feeling is that this might not be the best place for implementig the
locale stuff. Do you have any ideas
concerning locale info and tables ?

Due to my search in some news groups i have found a very excelent piece
of code from
Albert L. Ting <alt@artisan.com>. This solves the multiline label
problem by installing a MultiLineLabelUI and
a MultiLineTooltipUI without additional programming efford. He has
released this very slim jalt-library
to the public domain. To integrate the jalt lib you have only to import
the jalt package and call
the following methods:

    MultiLineToolTipUI.initialize ();
    MultiLineLabelUI.initialize ();

Now, every label or tooltip understands the '\n'. :-)


Best regards
Andreas Meyer

Hackenberg & Partner, A Renaissance Worldwide Company
EMail: am@hackenberg.de

P.S: I was to late in order to find the response to your JTable
question. But i am still very interested
to see your multiline header implementation.
Technical Details
Message-ID: <364460B4.C12705CD@hackenberg.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3630C022.3F2DC411@hackenberg.de> <714hb6$9ou8@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,121728c027f038c9
X-Google-Attributes: gid111d45,public
From: Andreas Meyer <am@hackenberg.de>
Subject: Re: JTable, Srolling in applets, custom cell rederer, changing colors of some table rows
Date: 1998/11/07
Message-ID: <364460B4.C12705CD@hackenberg.de>
X-Deja-AN: 409364668
Content-Transfer-Encoding: 7bit
References: <3630C022.3F2DC411@hackenberg.de> <714hb6$9ou8@forums.borland.com>
To: Anne JANSSENS <recherche@generix.fr>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing