Article View: borland.public.jbuilder.java.swing
Article #8459Deleting List Items in JTextPane
From: Nicki Helfrich
Date: Thu, 24 Aug 2000 00:00
Date: Thu, 24 Aug 2000 00:00
25 lines
1576 bytes
1576 bytes
Hi all you people,
I try to delete some Items from an unordered List in the JTextPane that I
put into the pane using
pane.setText("<ul><li>bla bla</li><li>alles toll</li></ul>");
I place the coursor on line under the last List Item and press the backspace
button.
What happens is the Characters are deletet one by one in the List but the
Coursor keeps its position right under the List.
As soon as I start typing, the coursor jumps to the end of the list where
the last Character was deleted and the input is printed there.
Does anyone have an explanation for that strange behavior or even has a
workaround for displaying the coursor at the right position ?
and... does anybody know some java component that is able of properly doing
basic formating features ?
Have a nice and sunny day
Nicki
Technical Details
Message-ID:
<8o2ogf$98msf$1@ID-45838.news.cis.dfn.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,ca73505072bc13df,start
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10568c,ca73505072bc13df,start
X-Google-Attributes: gid10568c,public
X-Google-Thread: fb99b,ca73505072bc13df,start
X-Google-Attributes: gidfb99b,public
From: "Nicki Helfrich" <hel{NOSPAM}frich@sitewaerts.de>
Subject: Deleting List Items in JTextPane
Date: 2000/08/24
Message-ID: <8o2ogf$98msf$1@ID-45838.news.cis.dfn.de>
X-Deja-AN: 661877677
X-Trace: fu-berlin.de 967107919 9722767 212.227.111.39 (16 [45838])
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: borland.public.jbuilder.java.swing,cz.comp.lang.java,de.comp.lang.java
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700