The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

RE:Links In Applets!!

Posted by Kishori Sharan on February 05, 2001 at 11:19 AM

Hi Sanjay
I think just setCursor ( ) for label will do. You don't need to use any mouse event handler. For getComponent() just use code in Mouse events like
if ( e.getComponent ( ) == linkLabel ) {
}
where linkLabel is declared as
Label linkLabel = new Label ( "Link 1" );
I mean linkLabel is the reference to your lable in applet.

Thanx
Kishori



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us