Jumat, 18 Mei 2012

Membuat Button

Input :
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.*;
  public class buton
{
public static void main (String[]xXx)
{
JFrame frame= new JFrame();
JButton bttn=new JButton ("Oke");
frame.setSize(200,150);
bttn.setBounds(10,40,150,25);
frame.add(bttn);
frame.setLayout(null);
frame.setVisible(true);
}
}


Output:


Tidak ada komentar:

Posting Komentar