• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic