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!");
|
||||
b.setBounds(30,100,80,30);
|
||||
add(b);
|
||||
setVisible(true);
|
||||
if (!GraphicsEnvironment.isHeadless()) {
|
||||
setVisible(true);
|
||||
}
|
||||
addWindowListener(new WindowAdapter() {
|
||||
public void windowClosing(WindowEvent e) {
|
||||
dispose();
|
||||
|
|
Loading…
Reference in New Issue