All About Class Button in AWT in Java



This class Button is responsible for creating a labeled or unlabeled button in the GUI.The structure of the class Button is given as :

public class Button extends java.awt.Component{
//constructors
public Button();//creates an button without a label in it
public Button(String Label);//creates a button with the label -Label
//methods:
public void setLabel(String label);//sets a label for the button.
public void addNotify();
public String getLabel();
protected String paramString();
}
 
All About Class Button in AWT in Java All About Class Button in AWT in Java Reviewed by Animesh Chatterjee on October 22, 2018 Rating: 5

No comments:

Powered by Blogger.