Solved

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

Posted on 2011-02-23
4
685 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to implement Singleton Design Pattern in Java.
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 …

688 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