import javax.swing.*;
public class SimpleGui {
public static void main(String[] args) {
JFrame frame = new JFrame();
JButton button = new JButton("click me");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(button);
frame.setSize(300, 300);
frame.setVisible(true);
}
}
Java simple GUI DEMO
最新推荐文章于 2024-08-01 15:05:21 发布