Commonly used Methods of AbstractButton class: MethodsDescriptionString getText()It is used to return the text of the button.void setEnabled(boolean b)It is used to enable or disable the button.void setIcon(Icon b)It is used to set the specified Icon on the button.Icon getIcon()It is used to get the Icon of the button.Java JButton – javatpoint www.javatpoint.com › java-jbutton