private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        // TODO add your handling code here:
        System.out.println("closing");
        try {
            FileWriter configwriter=new FileWriter(configfile);
            configwriter.write(startaddress+"\r\n");
            configwriter.write(directory+"\r\n");
            configwriter.write(filename+"\r\n");
            configwriter.close();
        } catch (IOException ex) {
            Logger.getLogger(MIPS16Window.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_formWindowClosing