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:

use itemListener for check box

Posted by tonglu on June 25, 2001 at 9:51 PM

> 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