dcsimg
How do I obtain only what’s shown in the JEditorPane and not all the underlying code that put it there? Thank You
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dan_Ford
Posted On:   Thursday, January 24, 2002 11:47 AM

I’ve written an HTML viewer/browser using Swing and JEditorPane and I’m attempting to add a “Find” function (just like in IE or NS browsers). I can find strings easily in a JTextArea but when I perform a getText() on my JEditorPane, it pulls the entire HTML file – tags and all – and not just what’s displayed on my browser window. I’ve tried doing a selectAll() and getting to the JEditorPane’s contents via the system clipboard but with no success. How do I obtain only what’s shown in the JEditorPane and not all the underlying code that put it there? Thank You.

About | Sitemap | Contact