Solved

Best way to display text in Java Swing to imiate a webpage

Posted on 2011-02-23
4
662 Views
Last Modified: 2013-11-23
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
0
Comment
Question by:guyneo
  • 2
  • 2
4 Comments
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34965452
Sounds like a JTextArea or perhaps JEditorPane
0
 
LVL 92

Expert Comment

by:objects
ID: 34965455
0
 
LVL 1

Author Comment

by:guyneo
ID: 35018485
Thanks.
Actually looks like editor pane might be more suitable to me.

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

0
 
LVL 1

Author Closing Comment

by:guyneo
ID: 35018501
Editor Pane is sufficient for my needs.
But TextPane which inherits EditorPane seems more useful in many other ways.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java Filesystem manipulation of Word Docx file (find replace text) 3 67
eclipse java  build path 6 45
HSSFWorkbook cannot be resolved error 10 51
Syntax Error 2 48
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now