Content « JEditorPane « Java Swing Q&A





1. How to insert HTML content directly in code from JEditorPane ?    coderanch.com

I'm developping an HTML Editor on a JEditor Pane. The problem is that a blank is not interpreted, and i've tried to add "& n b s p ;" in the code from a KeyListener added to the VK_SPACE event, or to define an Action to add HTML Spaces. But i didn't achieve to... I just want to insert a "& ...

5. Distinguishing only the text contents of JEditorPane    forums.oracle.com

I'm trying to send contents of JEditorpane to database that is saved as an HTML file. The html file contains references to images and I've been able to distinguish all images of the JEditorPane and send those to database. Now I need to send the text contens of JEditorPane to database. Problem is the text data can't be taken differently. If ...