🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: tried HTMLEditorKit.insertHTML after setPage

#142
From: ctskinner
Date: Fri, 24 Mar 2006 04:49
18 lines
1299 bytes
More Limitations of JEditorPane as an HTML editor
if you load an html file then:


jep.setCaretPosition(3005); // throws a bad position exception

these 2 do nothing:
    jep.setSelectionStart(2819);
    jep.setSelectionEnd(3005);

these 2 lines have no effect
    jep.setEditable(false);  // or true
    jep.setContentType("text/html"); 

Note: You can set a selection with the mouse, but not with the above functions.

Someone was lazy when they wrote this editor...
Technical Details
Message-ID: <44238870@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <441902de$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,2e459dd5725bc754
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "ctskinner" <kelvinq415@yahoo.com>
Sender: "ctskinner" <kelvinq415@yahoo.com>
Reply-To: "ctskinner" <kelvinq415@yahoo.com>
Subject: Re: tried HTMLEditorKit.insertHTML after setPage
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 220.101.175.189     
References:  <441902de$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44238870@newsgroups.borland.com>
Date: 23 Mar 2006 21:49:36 -0700
X-Trace: newsgroups.borland.com 1143179376 207.105.83.66 (23 Mar 2006 21:49:36 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail