mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 23:14:19 +00:00
AWTGears: Make the canvas the same size as the Gears test
This commit is contained in:
parent
8f677f1585
commit
d184509ac7
1 changed files with 4 additions and 2 deletions
|
|
@ -76,9 +76,10 @@ public class AWTGears extends Frame {
|
|||
*/
|
||||
public AWTGears() throws LWJGLException {
|
||||
setTitle("Gears");
|
||||
setSize(300, 300);
|
||||
setBackground(Color.BLACK);
|
||||
add(new AWTGearsCanvas());
|
||||
AWTGearsCanvas canvas = new AWTGearsCanvas();
|
||||
canvas.setSize(300, 300);
|
||||
add(canvas);
|
||||
addWindowListener(new WindowAdapter() {
|
||||
public void windowClosing(WindowEvent e) {
|
||||
dispose();
|
||||
|
|
@ -86,6 +87,7 @@ public class AWTGears extends Frame {
|
|||
}
|
||||
});
|
||||
setResizable(true);
|
||||
pack();
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue