code: private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
          Main.getProperties().setProperty(Main.PROPERTY_MAINFRAME_HEIGHT, "" + this.getHeight());
          Main.getProperties().setProperty(Main.PROPERTY_MAINFRAME_WIDTH, "" + this.getWidth());
          Main.getProperties().setProperty(Main.PROPERTY_MAINFRAME_POSX, "" + this.getBounds().x);
          Main.getProperties().setProperty(Main.PROPERTY_MAINFRAME_POSY, "" + this.getBounds().y);
          Main.getProperties().storeProperties("");
          System.exit(0);
      }
docs: Exit the Application