Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2665 > unrolled thread

JEditorPane and HTML offs

Started by"timtech" <timtech@THRWHITE.remove-dii-this>
First post2011-04-27 15:40 +0000
Last post2011-04-27 15:40 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.gui


Contents

  JEditorPane and HTML offs "timtech" <timtech@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000

#2665 — JEditorPane and HTML offs

From"timtech" <timtech@THRWHITE.remove-dii-this>
Date2011-04-27 15:40 +0000
SubjectJEditorPane and HTML offs
Message-ID<1192647363.529200.323900@e34g2000pro.googlegroups.com>
  To: comp.lang.java.gui
Given the offset from the start of an HTML document, how I can
translate this into the offset when the HTML is rendered in a
JEditorPane?  e.g.  in the HTML document (not strict HTML but still
renders):

<HTML>test</HTML>

"test" starts at offset 6 in the HTML - but in the JEditorPane only
"test" would be displayed so it would start at offset 0 - if I wanted
to highlight it for example.  You can imagine more complicated
documents...

Any ideas greatly apprieciated including if I can use an alternative
to the JEditorPane.

Thanks,

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web