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:
alternative for deprecation
Posted by nandakumaran.N on December 27, 2000 at 3:41 AM
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
Replies:
|