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


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

JEditorPane and HTML offs

From "timtech" <timtech@THRWHITE.remove-dii-this>
Subject JEditorPane and HTML offs
Message-ID <1192647363.529200.323900@e34g2000pro.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:40 +0000
Organization TDS.net

Show all headers | View raw


  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

Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web