🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: formatting tableheader

#8155
From: Tor Iver Wilhelmsen
Date: Wed, 18 Oct 2000 00:00
14 lines
1112 bytes
John McGrath  [TeamB] <ng-b@JPMcGrath.net> writes:

> 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.

Use a CSS1 stylesheet which you tell Java to use using 

StyleSheet sheet = new StyleSheet();
sheet.loadRules(someReader);
new HTMLEditorKit().setStyleSheet(sheet);
Even though you need an instance of HTMLEditorKit, in the current
implementation it sets a static global for all instances, including
JLabels etc. Go figure.
Technical Details
Message-ID: <usnpud0bx.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8shrgm$k7h$1@news1.xs4all.nl> <MPG.145710951627f0d1989c2f@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3e3ee1efa3862189
X-Google-Attributes: gid111d45,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: formatting tableheader
Date: 2000/10/18
Message-ID: <usnpud0bx.fsf@sds.no>
X-Deja-AN: 682780189
Sender: towi@SDSA1761
References: <8shrgm$k7h$1@news1.xs4all.nl> <MPG.145710951627f0d1989c2f@forums.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing