MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / main

Method main

day25/code/day25_Frame/src/cn/itcast_02/FrameDemo.java:8–51  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

6
7public class FrameDemo {
8 public static void main(String[] args) {
9 // ��������
10 Frame f = new Frame();
11
12 // ��������
13 f.setTitle("����ر�");
14 f.setSize(400, 200);
15 f.setLocation(500, 250);
16
17 // ע���¼�
18 f.addWindowListener(new WindowListener() {
19 @Override
20 public void windowOpened(WindowEvent e) {
21 }
22
23 @Override
24 public void windowIconified(WindowEvent e) {
25 }
26
27 @Override
28 public void windowDeiconified(WindowEvent e) {
29 }
30
31 @Override
32 public void windowDeactivated(WindowEvent e) {
33 }
34
35 @Override
36 public void windowClosing(WindowEvent e) {
37 System.exit(0);
38 }
39
40 @Override
41 public void windowClosed(WindowEvent e) {
42 }
43
44 @Override
45 public void windowActivated(WindowEvent e) {
46 }
47 });
48
49 // ���ô���ɼ�
50 f.setVisible(true);
51 }
52}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected