summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/Listing2701.java
blob: 379a43689a2a7ad664864b9fdfd82553401694b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Listing2701.java */

import java.awt.*;

public class Listing2701
{
  public static void main(String[] args)
  {
    Frame frame = new Frame("Frame entfernen");
    frame.setSize(300,200);
    frame.setVisible(true);
    try {
       Thread.sleep(3000);
    } catch (InterruptedException e) {
       //nichts
    }
    frame.setVisible(false);
    frame.dispose();
    System.exit(0);
  }
}