Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do you make MouseListener follow a String in a Scrollbar Applet?

 
Mike Hebear
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you make the MouseListener follow a specific string in a scrollbar applet? I want some of the lines to be links when clicked on. Example code or any advice would be appreciated. Thanks in advance!
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MouseListeners are added to components. You need your Strings in a component or components then you add the mouselistener(s) to the component(s) that houses the String(s).
Brian
 
Mike Hebear
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the advice about the components. Unfortunately, I'm not very familiar with how components work. Does anyone know any good tutorials etc. about components so that I can learn how to use them and add MouseListener to them? Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic