Article View: comp.lang.java.gui
Article #17JTextPane: character attributes for inserted text - setting from right
From: Wilf Reedijk
Date: Thu, 09 Jul 1998 00:00
Date: Thu, 09 Jul 1998 00:00
42 lines
2252 bytes
2252 bytes
This is a multi-part message in MIME format. --------------7DB1516C6CC40C7A697B9ED5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm using JTextPane. I am trying to set the character attributes at the current insertion point. This insertion point is between an icon (to the left) and other text (on the right). I want the new text to assume the attributes of the text to the right. My observation is that new text that is inserted assumes the attributes from the character to the left. Which in my case makes no sense since there is an icon on the left. There must be a way to reverse this. Please help if you can. Thank you Wilf Reedijk -- wilf@intravenous.com ICQ# 9956840 --------------7DB1516C6CC40C7A697B9ED5 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Wilf Reedijk Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Wilf Reedijk n: Reedijk;Wilf email;internet: wilf@intravenous.com note: ICQ: 9956840 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------7DB1516C6CC40C7A697B9ED5--
Technical Details
Message-ID:
<35A5829C.5B7EC2C@intravenous.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,1180081c2b760c3f,start X-Google-Attributes: gid1089d0,public X-Google-Thread: fbe9c,1180081c2b760c3f,start X-Google-Attributes: gidfbe9c,public X-Google-Thread: 10fd6d,1180081c2b760c3f,start X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10a146,1180081c2b760c3f,start X-Google-Attributes: gid10a146,public From: Wilf Reedijk <wilf@intravenous.com> Subject: JTextPane: character attributes for inserted text - setting from right Date: 1998/07/09 Message-ID: <35A5829C.5B7EC2C@intravenous.com> X-Deja-AN: 370068950 Content-Type: multipart/mixed; boundary="------------7DB1516C6CC40C7A697B9ED5" X-Trace: news7.ispnews.com 900039358 29750 209.153.196.45 (10 Jul 1998 02:55:58 GMT) Organization: Intravenous Communications Mime-Version: 1.0 NNTP-Posting-Date: 10 Jul 1998 02:55:58 GMT Newsgroups: comp.lang.java.gui,comp.lang.java.programmer,borland.public.jbuilder.java,borland.public.jbuilder.java.api