Article View: borland.public.jbuilder.java.swing
Article #143Re: tried HTMLEditorKit.insertHTML after setPage
From: Lori M Olson [TeamB]
Date: Fri, 24 Mar 2006 16:39
Date: Fri, 24 Mar 2006 16:39
39 lines
2021 bytes
2021 bytes
ctskinner wrote:
> 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...
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=312071
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<442420c4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed.utanet.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<441902de$1@newsgroups.borland.com> <44238870@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 Date: Fri, 24 Mar 2006 09:39:42 -0700 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: tried HTMLEditorKit.insertHTML after setPage References: <441902de$1@newsgroups.borland.com> <44238870@newsgroups.borland.com> In-Reply-To: <44238870@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.182.172 Message-ID: <442420c4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1143218372 142.179.182.172 (24 Mar 2006 08:39:32 -0700) Lines: 39 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed.utanet.at!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail