Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ce31a60

Browse files
committedAug 20, 2017
Chapter 02 section 01 codes added.
1 parent d2c1e63 commit ce31a60

File tree

1 file changed

+16
-0
lines changed
  • 02-Java-Swing-Basics/01-About-Java-GUI/src

1 file changed

+16
-0
lines changed
 
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import javax.swing.*;
2+
import java.awt.*;
3+
4+
public class Main {
5+
6+
public static void main(String[] args) {
7+
8+
EventQueue.invokeLater(() -> {
9+
JFrame frame = new JFrame();
10+
frame.setSize(500, 500);
11+
frame.setResizable(false);
12+
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
13+
frame.setVisible(true);
14+
});
15+
}
16+
}

0 commit comments

Comments
 (0)
Please sign in to comment.