blob: 95af070cf48bbed0331f23b847dd585bab56a298 (
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(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));
}
}
|