Font Awesome Icons

Tutorial

AWT Button

A Button is the most common GUI control that lets you click on it do some action. You might already have seen it a lot of times, in OK and Cancel buttons.

AWT BUTTON EXAMPLE

public class Button1 extends Frame{    public static void main(String args[]){  

Frame f=new Frame();

       

                   {  

Button b=new Button(“this is button”);   b.setBounds(30,100,80,30);

f.add(b); 

f.setSize(300,300);  

f.setLayout(null);  

f.setVisible(true);  

}  

 

        

}}