Article View: borland.public.jbuilder.java.swing
Article #8343Re: Different text colors in the same JTextPane
From: John P. McGrath
Date: Fri, 22 Sep 2000 00:00
Date: Fri, 22 Sep 2000 00:00
21 lines
1144 bytes
1144 bytes
On Thu, 21 Sep 2000 22:53:35 -0600, Michael Holst wrote:
> 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.
Follow the link labeled "Using Text Components" in the JTextPane
javadocs. It will take you to the Java Tutorial section on text
components.
--
Regards,
John McGrath
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.1434fd058dc2dae0989b75@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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: John P. McGrath <ng-b@JPMcGrath.net> Subject: Re: Different text colors in the same JTextPane Date: 2000/09/22 Message-ID: <MPG.1434fd058dc2dae0989b75@forums.borland.com> X-Deja-AN: 672806818 References: <39cae4c3_2@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing