Clickable text in a JText Pane

Posted on 2003-02-24
Medium Priority
Last Modified: 2007-12-19

I'm using a JTextPane to display queries from a dictionary (stored in database). I would like the text that comes from the dictionary to be clickable such that if the person using it, could click on a word and the dictionary would be searched for this new entry.

Is this possible. Would this involve adding some kind of text actionlistener to every word so that if one was clicked it would automatically be queried.

Can anybody recommend any web-sites where i might find such information?

all the best,

Question by:sewalsh

Accepted Solution

gibbonss earned 190 total points
ID: 8026650
Sorry I don't know what you're on about but I'd love some points...... any chance????

Author Comment

ID: 8035627
(Edited by Computer101) answer

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 …
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

621 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