Created
May 30, 2016 16:25
-
-
Save RafalR/d252d405f32001077188a60b2610bcad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JFrame = javax.swing.JFrame; | |
var JLabel = javax.swing.JLabel; | |
var System = java.lang.System; | |
var fr = new JFrame("Uruchomiony"); | |
var lb = new JLabel("Wyłącz okno aby zakończyć działanie skryptu."); | |
fr.setSize(550, 50); | |
fr.setVisible(true); | |
fr.add(lb); | |
fr.addWindowListener(new JavaAdapter(java.awt.event.WindowAdapter){ | |
windowClosing:function(e){ | |
System.out.println("exit"); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment