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
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

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

741 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