🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: formatting tableheader

#8154
From: John McGrath TeamB
Date: Wed, 18 Oct 2000 00:00
22 lines
1161 bytes
On Tue, 17 Oct 2000 17:33:42 +0200, Martijn wrote:

> I would like to use a 3 line sring in the tableheader,
> but i can't find a manner to get that done. Can someaone
> help me with that.

Two approaches that may work:

1) Use the HTML rendering for the header.  Set the text to something 
like:  "<html>Line 1<br>Line 2<br>Line 3</html>".  That should work, but 
I have never been happy with the appearance when I use this feature.

2) Write your own TableCellRenderer to handle multiple line labels.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.145710951627f0d1989c2f@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8shrgm$k7h$1@news1.xs4all.nl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3e3ee1efa3862189
X-Google-Attributes: gid111d45,public
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Subject: Re: formatting tableheader
Date: 2000/10/18
Message-ID: <MPG.145710951627f0d1989c2f@forums.borland.com>
X-Deja-AN: 682762240
References: <8shrgm$k7h$1@news1.xs4all.nl>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing