/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package GUI2;
/**
*
* @author steven
*/
import java.awt.*;
import javax.swing.*;
public class Tampilan2 {
public static void main (String[] args){
WindowUtilities.setNativeLookAndFeel();
JFrame f = new JFrame("Ini merupakan sebuah percobaan");
f.setSize(400, 150);
Container content = f.getContentPane();
content.setBackground(Color.white);
content.setLayout(new FlowLayout());
content.add(new JButton("Tombol 1"));
content.add(new JButton("Tombol 2"));
content.add(new JButton("Tombol 3"));
f.addWindowListener(new ExitListener());
f.setVisible(true);
}
}
Tidak ada komentar:
Posting Komentar