The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

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:

I am not sure but try this...

Posted by k Pratap Reddy on December 27, 2000 at 5:23 PM

> Hi
> I have tried to compile a program which was written
> on java 1.1 but I have java 1.2 .so I got one warning as
> deprecated then try with -deprecation I got following massage

> The method boolean action(java.awt.Event,java.lang.Object)
> declared in class final12 is not deprecated ,but overrides a
> deprecated method of the same signature declared in class
> java.awt.Component.public boolean action(Event evt,int x,int y){
>
> the problamatic part is as follows
> -----
> public boolean action(Event evt, Object arg) {
>

> if ( arg.equals("Randomize") ) {
> random = true;
> repaint();
> }
> return true;
> }
> --------
> the final12 is the class which contain this part extended from
> applet class
> I tried to find an alternative
> can anybody help to find the alternative and explain what is
> mean by same signature on error message
> yours
> nandakumaran.N

Instead of using action() use actionPerformed().




Replies:
  • re: answer nandakumaran.N December 29, 2000 at 5:41 AM (0)

Sponsored Links



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