guyneo
asked on
Best way to display text in Java Swing to imiate a webpage
Hi Experts,
I need to display a few paragraphs of text in a Java Swing Application.
The users should be able to interact with the text in multiple ways
for example:
highlight sentences
add in between the sentences.
edit the sentences etc
you get the idea.
I know these tasks are pretty easy in a web application.
What component or combinations of components should I use for this kind of requirment?
Jtextpane? SwingX?
Thanks in advance guys
I need to display a few paragraphs of text in a Java Swing Application.
The users should be able to interact with the text in multiple ways
for example:
highlight sentences
add in between the sentences.
edit the sentences etc
you get the idea.
I know these tasks are pretty easy in a web application.
What component or combinations of components should I use for this kind of requirment?
Jtextpane? SwingX?
Thanks in advance guys
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://download.oracle.com/javase/tutorial/uiswing/components/textarea.html
ASKER
Thanks.
Actually looks like editor pane might be more suitable to me.
http://download.oracle.com/javase/tutorial/uiswing/components/editorpane.html#recap
Actually looks like editor pane might be more suitable to me.
http://download.oracle.com/javase/tutorial/uiswing/components/editorpane.html#recap
ASKER
Editor Pane is sufficient for my needs.
But TextPane which inherits EditorPane seems more useful in many other ways.
But TextPane which inherits EditorPane seems more useful in many other ways.