any way to simulate HTML hot text to pop up a JOptionPane?  
Author Message
signell





PostPosted: 2004-1-22 3:21:00 Top

java-programmer, any way to simulate HTML hot text to pop up a JOptionPane? Hi - I would like to put some HTML-look-like hot text inside JTextArea
setText text so that clicking on the hot text words will pop up a
JOptionPane message box. I want to do it by hot text so that: (1)
users will be totally familiar with it from all their web browsing;
and (2) the nearby text can be edited by me from time to time without
worrying about what coordinates the hot text will move to. Is this
possible in Java?
- Pete
 
Andrew Thompson





PostPosted: 2004-1-22 3:40:00 Top

java-programmer >> any way to simulate HTML hot text to pop up a JOptionPane? "Peter Signell" <email***@***.com> wrote in message
news:email***@***.com...
| Hi - I would like to put some HTML-look-like hot text inside
JTextArea
| setText text so that clicking on the hot text words will pop up
a
| JOptionPane message box.

I am not so familiar with JTextArea, but this
is certainly possible in a JEditorPane.

The API docs has an example of how to detect
hyperlink clicks, then you can do pretty much
whatever you want once they are detected.

HTH