Java - Action y ActionListener

 
Vista:

Action y ActionListener

Publicado por Jhon Alexander (2 intervenciones) el 26/06/2002 06:59:13
Tengo el siguiente código:

public boolean action(Event e, Object o)
{
number = Integer.parseInt( o.toString() );
suma = suma + number;
input.setText(" ");
showStatus( Integer.toString(suma) );
return true;
}

y al compilarlo me sale el siguiente warning:

Addition.java:26: The method boolean action(java.awt.Event, java.lang.Object) declared in class Addition is not deprecated, but overrides a deprecated method of the same signature declared in class java.awt.Component. public boolean action(Event e, Object o)
^
Note: Addition.java uses or overrides a deprecated API. Please consult the documentation for a better alternative.
1 warning

Cómo hago para arreglar esto?

GRACIASSSSSSSS

Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Action y ActionListener

Publicado por Oscar (661 intervenciones) el 26/06/2002 11:44:13
Que es exactamanete lo que quieres hacer con eso(el metodo action)?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar