import java.awt.*;
public class Fenster extends Frame
{
Fenster() {
setBackground(Color.yellow);
setSize(500,500);
setLocation(500,500);
setVisible(true);
}
public static void main(String[] args) {
new Fenster();
}
}
class Kreis_1 extends Canvas {
public void paint(Graphics g) {
g.setColor (Color.red);
g.fillOval(100,100,100,100);
}
}
class EFensterK extends Frame {
EFensterK() {
add(new Kreis_1());
setBackground(Color.red);
setSize(400,400);
setVisible(true);
setLocation(200,200);
}
public static void main(String[] args) {
new EFensterK();
}
}