ellandrd
asked on
dont understand warning message
i got a warning message for this line of code:
String labelValue = button.getLabel();
the message is:
warning: [deprecation] getLabel() in javax.swing.AbstractButton has been deprecated
somebody help
String labelValue = button.getLabel();
the message is:
warning: [deprecation] getLabel() in javax.swing.AbstractButton
somebody help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/AbstractButton.html#getLabel()
there is no way to rid of the message
it is simply replaced by getext
it is simply replaced by getext
depricated it means that It has been replaced by getText().
or calling gettext itself
String label = Button.getText();
your jdk version
your jdk version
:-)