BAEL-5421

This commit is contained in:
opokharel 2022-06-25 11:57:23 -06:00
parent ca767321f7
commit 380b86b50e
1 changed files with 3 additions and 1 deletions

View File

@ -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();