V
vertigo
Hello
I have JTextArea in which in each line i have an option.
I have to do something when i click any of theese options.
I tried to do it in:
mouseClicked(MouseEvent e)
but it's difficult for me to 'translate' mouse position to
line number (which select appriopriate option).
How can i do it ?
Maybe there are other components which support such functionality ?
Thanx
Michal
I have JTextArea in which in each line i have an option.
I have to do something when i click any of theese options.
I tried to do it in:
mouseClicked(MouseEvent e)
but it's difficult for me to 'translate' mouse position to
line number (which select appriopriate option).
How can i do it ?
Maybe there are other components which support such functionality ?
Thanx
Michal