import javax.swing.JFrame;
public class SwingApplication extends JFrame {
private JFrame frame;
public SwingApplication() {
frame = new JFrame();
frame.setBounds(100, 100, 450, 300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public static void main(String[] args) {
try {
SwingApplication window = new SwingApplication();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
}
댓글 없음:
댓글 쓰기