/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package fenster;

import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Fenster extends JPanel {

    public void paint(Graphics g) {

        g.drawLine(100, 50, 300, 200);
        
        
       // g.setColor(new Color(255, 0, 0));
       // g.fillRect(20, 20, 200, 100);
    }

    public static void main(String[] args) {
        JFrame frame = new JFrame("Meine Grafik");
        frame.getContentPane().add(new Fenster());
        frame.setSize(600, 400);
        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setResizable(false);
    }
}
