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: answer
Posted by nandakumaran.N on December 29, 2000 at 5: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 > Instead of using action() use actionPerformed(). sorry it is wrong because I got similar warning for public boolean mouseMove (Event evt, int mx, int my) { also please any alternative nandakumaran.N
Replies:
|