Solved

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

Posted on 2011-02-23
4
672 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
custom annotations 9 42
xampp tool 12 56
arguments to jar 5 35
swing controls 2 16
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

830 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