Link to home
Start Free TrialLog in
Avatar of ellandrd
ellandrdFlag for Ireland

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
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of laes_
laes_

there is no way to rid of the message
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
:-)