Skip to main content

I need a Rich text editor component. What to use better?

4 replies [Last post]
Joined: 2006-01-10
Points: 0

Standard Swing Examples include a Stylepad sample which provides a rich text editing possibilities.
I'd like to include similar component into my application however it needs to have also support:
- Copy/Paste of images
- Save/Load RTF document formats (including images)
- Provide basic formatting capabilities like in Stylepad plus support for bulleted and numbered lists
- It would be nice if it supported also spell checking but not mandatory
Window's Wordpad could be taken as an example application with similar functionality.

Could you advice what to do in my case?
- Try to customize JEditorPane myself (it seems like complicated)
- Get already customized JEditorPane from somewhere
- Get some other third party component, please recommend which one
(Free components are preferable however commercial are also possible)

Any advices are kindly welcome. Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-07-31
Points: 0

Have a look at JRichTextEditor. It might suite your needs.

Joined: 2006-01-10
Points: 0

See below the list of options I've found for now (with my personal opinion).
Unfortunately none of them does not provide a 100% ready to use solution
for me. Let's wait for more answers.

Actually I'm a bit upset :( about the forum's activity last time and same thing about events. It seems like everybody is died. Guys, where you are? What's happened? Wake up. Holidays are gone already. Happy new year! :)

- Both are extensions of JTextPane. Both have some unpleasant bugs:
Can not save images into file, can not paste image from clipboard etc. Some
development effort is required to make them work correctly.

- It seems like it has GPL only option and can not be used for commercial products :(

Looks good however I'm not sure if it can be used as a component. They seem like
office suite vendors.

4. OpenOffice provides the possibility of embedding it's components into Java
applications. The main problem is that these components are heavyweight and
do not always integrate well with Swing application.

Joined: 2004-06-18
Points: 0
Ekit is a free open source Java HTML editor applet and application.

- i successfully used it to embed rich text editing into my applet...

Joined: 2003-06-10
Points: 0

There's a rich text editor in Memoranda. That's the best one that I'm aware of.