The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 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:

can we register action listener to all objects? i have a prob here?

Posted by senthil on June 10, 2001 at 7:32 AM

when i created an Checkbox object
say
Checkbox ck=new Checkbox();
ck.addActionListener(this);

when i compile this code its saying cannot resolve symbol
ck.addActionListener(classname);
^
Can we register ActionListeners to TextField,TextArea,and to these checkboxes???

When i registered an ActionListener to a TextArea oblect its showing the same error??



Replies:

Sponsored Links



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