W
wizofaus
I've been playing around with JTextPane and JEditorPane and found a few
odd things. At least under Windows and Java 1.5, neither JTextPane or
JEditorPane support copying & pasting of formatted text very well. The
former doesn't support it at all (even inside the control), and the
latter doesn't support it when interacting with other standard Windows
controls. I can, if necessary, live without the latter, but the former
is definitely needed.
But while it seems quite easy to put together a simple app that lets
you change the text display style (font, color etc.) for new and
existing (selected) text in a JTextPane, it's not so obvious how to do
this for a JEditorPane. Furthermore, for JTextPane, serializing via the
XMLEncoder, as recommended by the Sun documentation, does not capture
all the style information.
Can anyone recommend perhaps a better third-party rich text editing
control that would support all the functionality I'm looking for?
odd things. At least under Windows and Java 1.5, neither JTextPane or
JEditorPane support copying & pasting of formatted text very well. The
former doesn't support it at all (even inside the control), and the
latter doesn't support it when interacting with other standard Windows
controls. I can, if necessary, live without the latter, but the former
is definitely needed.
But while it seems quite easy to put together a simple app that lets
you change the text display style (font, color etc.) for new and
existing (selected) text in a JTextPane, it's not so obvious how to do
this for a JEditorPane. Furthermore, for JTextPane, serializing via the
XMLEncoder, as recommended by the Sun documentation, does not capture
all the style information.
Can anyone recommend perhaps a better third-party rich text editing
control that would support all the functionality I'm looking for?