🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: (newbie one) JTextPane styles

#9240
From: Joi Ellis
Date: Tue, 02 May 2000 00:00
52 lines
2146 bytes
This is a multi-part message in MIME format.
--------------65C3FCB12C18B38B05E98C8C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Neil wrote:
> 
> Can anyone point me in the right direction to highlighting individual
> parts of the text in a jTextPane component?  As in making certain words
> appear in bold type or different colours.
> 
> Thanks and sorry if it's a basic question.
> 
> Neil
> flipside@ip3.com

As one newbie talking to another... look up the classes around
javax.swing.text.Document and javax.swing.text.StyledDocument.

http://java.sun.com/products/jdk/1.2/docs/api/javax/swing/text/Document.html
http://java.sun.com/products/jdk/1.2/docs/api/javax/swing/text/StyledDocument.html


-- 
Joi Ellis                    Software Engineer
Aravox Technologies          joi@aravox.com, gyles19@visi.com

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson
--------------65C3FCB12C18B38B05E98C8C
Content-Type: text/x-vcard; charset=us-ascii;
 name="joi.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Joi Ellis
Content-Disposition: attachment;
 filename="joi.vcf"

begin:vcard 
n:Ellis;Joi
x-mozilla-html:FALSE
org:Aravox Technologies
adr:;;;;;;
version:2.1
email;internet:joi@aravox.com
title:Software Engineer
x-mozilla-cpt:;0
fn:Joi Ellis
end:vcard

--------------65C3FCB12C18B38B05E98C8C--
Technical Details
Message-ID: <390F4467.496D8C94@aravox.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <390F2B00.98CC82C8@ip3.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,1ace1129168d2055
X-Google-Attributes: gid111d45,public
From: Joi Ellis <joi@aravox.com>
Subject: Re: (newbie one) JTextPane styles
Date: 2000/05/02
Message-ID: <390F4467.496D8C94@aravox.com>
X-Deja-AN: 618427033
References: <390F2B00.98CC82C8@ip3.com>
X-Accept-Language: en
Content-Type: multipart/mixed; boundary="------------65C3FCB12C18B38B05E98C8C"
Organization: Aravox Technologies
Mime-Version: 1.0
Reply-To: joi@aravox.com
Newsgroups: borland.public.jbuilder.java.swing