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

Method main

day25/code/day25_Frame/src/cn/itcast_02/FrameDemo2.java:14–33  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

12 */
13public class FrameDemo2 {
14 public static void main(String[] args) {
15 // ��������
16 Frame f = new Frame();
17
18 // ��������
19 f.setTitle("����ر�");
20 f.setSize(400, 200);
21 f.setLocation(500, 250);
22
23 // ע���¼�
24 f.addWindowListener(new WindowAdapter() {
25 @Override
26 public void windowClosing(WindowEvent e) {
27 System.exit(0);
28 }
29 });
30
31 // ���ô���ɼ�
32 f.setVisible(true);
33 }
34}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected