In Java, is there any component that is similar to Rich TextBox in VB? Because I want to display text in multiple format.
Printable View
In Java, is there any component that is similar to Rich TextBox in VB? Because I want to display text in multiple format.
There are the JEditorPane
Are there any example about using JEditorPane?
You can save your formatted text as html and open it in JEditorPane.
I don't have very good info about this subject but you can use the JTextPane and create your own style....I found out that most of Java styles are used to handle HTML not normal text...If you want to use normal text, you should search for a free package
The JTextPane allows you to use bold, italic, blah,blah, etc. styles of text. I've used it before, but it was A LONG time ago. I think you have to create some kind of document object to use in it.