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
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


0