Skip to content

Instantly share code, notes, and snippets.

@klg71
Created January 22, 2019 10:19
Show Gist options
  • Save klg71/bc7c8e7d77cbb7c2718705d9bbd92da5 to your computer and use it in GitHub Desktop.
Save klg71/bc7c8e7d77cbb7c2718705d9bbd92da5 to your computer and use it in GitHub Desktop.
package de.klg71;
import javax.swing.*;
import java.awt.*;
public class GrafikMain {
public static void main(String... args) {
JFrame frame = new JFrame("My Drawing");
Canvas canvas = new Zeichnung();
canvas.setSize(400, 400);
frame.add(canvas);
frame.pack();
frame.setVisible(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment