blob: f7f94bd3c5bb41ca2162fff0f159ee6130f71da0 (
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.*;
public class TestWindow extends JFrame {
public TestWindow() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setTitle("Graphics test");
setSize(300, 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));
}
}
|