Results 1 to 5 of 5
Thread: HTML Editor
- 01-24-2010, 11:06 AM #1
Member
- Join Date
- Jan 2010
- Posts
- 6
- Rep Power
- 0
HTML Editor
Hi!
For an application that I am working on, I need to take formatted user input (user types in a text box) and save it in a file, and display if later. I plan to save it in html format.
This is how I am going around with it - using Java swings -
1. Use a JTextPane and a JScrollPane to show the editor on screen
2. Allow the user to manage the Bold / Underline / font size, etc using a key map.
3. On Save click, I use the getStyledDocument() to retrieve the styled document.
But beyond this, I am lost! How do I convert the StyledDocument to an html file and back?
Do we have an html parser / writer build in? Or do I need to look for some open source code for this? If so, please suggest a good one
Thanks!
- 01-24-2010, 11:09 AM #2
can this help ?
"There is no foolproof thing; fools are too smart."
"Why can't you solve my Problem ?"
- 01-24-2010, 11:20 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
There is a free HTML editor called EKIT for Java. Search on the web, you may find a documentation related to that.
- 01-24-2010, 11:47 AM #4
Member
- Join Date
- Jan 2010
- Posts
- 6
- Rep Power
- 0
Thanks for your help!
- 02-02-2010, 04:33 PM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
You are welcome. If you've solved the problem, please mark the thread solved.
Similar Threads
-
Help for a Text Editor.
By necroninja in forum Advanced JavaReplies: 0Last Post: 08-01-2009, 05:21 PM -
How can I include a html file in html textarea?
By surya_dks in forum New To JavaReplies: 2Last Post: 10-04-2008, 07:20 AM -
Editor for Java
By peiceonly in forum New To JavaReplies: 4Last Post: 08-13-2008, 08:27 AM -
HTML editor
By blueboy in forum AWT / SwingReplies: 0Last Post: 01-15-2008, 12:52 PM -
Xml Editor
By Marty in forum XMLReplies: 3Last Post: 05-11-2007, 09:27 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks