Solved

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

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mapShare challenge 13 68
mapAB Challlenge 35 85
Eclipse IDE - Cannot copy/paste from console output 8 62
mockito example issue 8 31
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

707 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

19 Experts available now in Live!

Get 1:1 Help Now