MS word like editor in my application.
HI ALL,
I need to find a way to paste any text to a control in my Java application. I need to be able to edit this text as a word like editor. Please I need to know how can I approach this problem. I need to be able to keep all properties of this text (Paragraphs, Bullets, Font Color and Font Size) ect...
CDCDeveloper
Search the web for open source tools, maybe you find one. OpenOffice e.g. might have something for you in these regards. Programming it yourself is more effort than you'd believe. You need a component capable of handling RTF (which I understand is the format of the clipboard). I guess the JEditorPane can do it, but of course it won't feature the editing options by itself.
There's the QTextEdit if you're into the whole QTJambi thing.
http://doc.trolltech.com/qtjambi-1.0.0beta/com/trolltech/qt/gui/QTextEdit.html
There's the SWT StyledText:
http://www.eclipse.org/articles/StyledText%201/article1.html
Or maybe you just want a plain Swing editor pane?
http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html