@Override public void paintChildren(Graphics g) { super.paintChildren(g); if (exitAfterFirstPaint) { System.exit(0); } }
static { try { properties = new Properties(); properties.load(Notepad.class.getResourceAsStream("resources/NotepadSystem.properties")); resources = ResourceBundle.getBundle("resources.Notepad", Locale.getDefault()); } catch (MissingResourceException | IOException e) { System.err.println( "resources/Notepad.properties " + "or resources/NotepadSystem.properties not found"); System.exit(1); } }
public void actionPerformed(ActionEvent e) { System.exit(0); }
@Override public void windowClosing(WindowEvent e) { System.exit(0); }