blob: 802a3306ab132a2b507537a7d23a5514c4eeb3e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* GrafikBeispiel.java */
import java.awt.*;
import java.awt.event.*;
public class GrafikBeispiel
extends Frame
{
public static void main(String[] args)
{
GrafikBeispiel wnd = new GrafikBeispiel();
}
public GrafikBeispiel()
{
super("GrafikBeispiel");
addWindowListener(new WindowClosingAdapter(true));
setBackground(Color.lightGray);
setSize(300,200);
setVisible(true);
}
public void paint(Graphics g)
{
//wird in den folgenden Beispielen �berlagert
}
}
|