🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Different text colors in the same JTextPane

#8339
From: Tor Iver Wilhelmsen
Date: Fri, 22 Sep 2000 00:00
8 lines
856 bytes
"Michael Holst" <michaelholst@technologist.com> writes:

> I have a slight problem with a JTextPane, I need to have several text colors
> within the same jTextPane, say one in red and another in blue. How should
> proceed to accomplish this? I've pretty much chequed out all the straight
> forward methods and can't find a useful one.

Look at the JDK examples, esp. demo/jfc/StylePad
Technical Details
Message-ID: <u1yycdd9c.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39cae4c3_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a4e229840dd8224
X-Google-Attributes: gid111d45,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: Different text colors in the same JTextPane
Date: 2000/09/22
Message-ID: <u1yycdd9c.fsf@sds.no>
X-Deja-AN: 672782265
Sender: towi@SDSA1761
References: <39cae4c3_2@dnews>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing