Link to home
Start Free TrialLog in
Avatar of guyneo
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
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of guyneo
guyneo

ASKER

Thanks.
Actually looks like editor pane might be more suitable to me.

http://download.oracle.com/javase/tutorial/uiswing/components/editorpane.html#recap

Avatar of guyneo

ASKER

Editor Pane is sufficient for my needs.
But TextPane which inherits EditorPane seems more useful in many other ways.