BAEL-5421
This commit is contained in:
parent
ca767321f7
commit
380b86b50e
|
@ -12,7 +12,9 @@ public class MySampleGUIAppn extends JFrame{
|
||||||
Button b = new Button("Click Me!");
|
Button b = new Button("Click Me!");
|
||||||
b.setBounds(30,100,80,30);
|
b.setBounds(30,100,80,30);
|
||||||
add(b);
|
add(b);
|
||||||
|
if (!GraphicsEnvironment.isHeadless()) {
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
|
}
|
||||||
addWindowListener(new WindowAdapter() {
|
addWindowListener(new WindowAdapter() {
|
||||||
public void windowClosing(WindowEvent e) {
|
public void windowClosing(WindowEvent e) {
|
||||||
dispose();
|
dispose();
|
||||||
|
|
Loading…
Reference in New Issue