🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Different text colors in the same JTextPane

#8337
From: Michael Holst
Date: Thu, 21 Sep 2000 00:00
10 lines
851 bytes
Hello,

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.

Thanks,

Michael Holst
Technical Details
Message-ID: <39cae4c3_2@dnews>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a4e229840dd8224,start
X-Google-Attributes: gid111d45,public
From: "Michael Holst" <michaelholst@technologist.com>
Subject: Different text colors in the same JTextPane
Date: 2000/09/21
Message-ID: <39cae4c3_2@dnews>
X-Deja-AN: 672734132
X-Trace: 21 Sep 2000 21:49:07 -0800, 196.40.23.221
Organization: ArtInSoft S.A.
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400