What are the methods of Abstractbutton class in Java Swing?

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

Sizin İçin Seçtik  What band is 850 MHz?

Leave a Reply

Your email address will not be published. Required fields are marked *