23 lines
478 B
Java
23 lines
478 B
Java
import java.awt.BorderLayout;
|
|
import java.awt.Color;
|
|
import java.awt.Dimension;
|
|
import javax.swing.JFrame;
|
|
|
|
/**
|
|
* Fun
|
|
*/
|
|
public class Fun {
|
|
|
|
public static void main(String[] args) {
|
|
FunPanel p = new FunPanel();
|
|
|
|
JFrame frame = new JFrame();
|
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
frame.setLocation(100, 100);
|
|
frame.setSize(700, 700);
|
|
frame.add(p);
|
|
|
|
frame.setVisible(true);
|
|
p.repaint();
|
|
}
|
|
} |