AWTGears: Make the canvas the same size as the Gears test
This commit is contained in:
parent
8f677f1585
commit
d184509ac7
|
@ -76,9 +76,10 @@ public class AWTGears extends Frame {
|
||||||
*/
|
*/
|
||||||
public AWTGears() throws LWJGLException {
|
public AWTGears() throws LWJGLException {
|
||||||
setTitle("Gears");
|
setTitle("Gears");
|
||||||
setSize(300, 300);
|
|
||||||
setBackground(Color.BLACK);
|
setBackground(Color.BLACK);
|
||||||
add(new AWTGearsCanvas());
|
AWTGearsCanvas canvas = new AWTGearsCanvas();
|
||||||
|
canvas.setSize(300, 300);
|
||||||
|
add(canvas);
|
||||||
addWindowListener(new WindowAdapter() {
|
addWindowListener(new WindowAdapter() {
|
||||||
public void windowClosing(WindowEvent e) {
|
public void windowClosing(WindowEvent e) {
|
||||||
dispose();
|
dispose();
|
||||||
|
@ -86,6 +87,7 @@ public class AWTGears extends Frame {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
setResizable(true);
|
setResizable(true);
|
||||||
|
pack();
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue