Remove redundant resizing of AWT canvases in AWT tests
This commit is contained in:
parent
12d445c7ec
commit
5d5dde0aed
|
@ -137,7 +137,6 @@ public class AWTGears extends Frame {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
canvas0.setBounds(0, 0, 300, 300);
|
|
||||||
addWindowListener(new WindowAdapter() {
|
addWindowListener(new WindowAdapter() {
|
||||||
public void windowClosing(WindowEvent e) {
|
public void windowClosing(WindowEvent e) {
|
||||||
dispose();
|
dispose();
|
||||||
|
|
|
@ -93,7 +93,6 @@ public class AWTTest extends Frame {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
canvas0.setBounds(0, 0, 320, 320);
|
|
||||||
add(canvas1 = new AWTGLCanvas() {
|
add(canvas1 = new AWTGLCanvas() {
|
||||||
int current_height;
|
int current_height;
|
||||||
int current_width;
|
int current_width;
|
||||||
|
@ -124,7 +123,6 @@ public class AWTTest extends Frame {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
canvas1.setBounds(320, 0, 320, 320);
|
|
||||||
addWindowListener(new WindowAdapter() {
|
addWindowListener(new WindowAdapter() {
|
||||||
public void windowClosing(WindowEvent e) {
|
public void windowClosing(WindowEvent e) {
|
||||||
dispose();
|
dispose();
|
||||||
|
|
Loading…
Reference in New Issue