blob: aa5a03f6b1eaea1d4d54155ae9cbf93a6c874758 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package dev.figboot.cuberender.test;
import javax.swing.*;
class TestWindow extends JFrame {
public TestWindow() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setTitle("Graphics test");
setSize(200, 300);
setLocationRelativeTo(null);
GraphicsPanel gp = new GraphicsPanel();
setContentPane(gp);
TestWindowControl control = new TestWindowControl(gp);
control.setVisible(true);
}
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> new TestWindow().setVisible(true));
}
}
|