private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        PrintWriter settings = null;
        try {
            settings = new PrintWriter(System.getProperty("user.home")+"/Documents/AcerX/settingsYM.txt", "UTF-8");
            settings.println(jTextField1.getText());
            settings.println(jTextField2.getText());
            if(jCheckBox1.isSelected()) {
                settings.println("true");
                ChatBox.muted = true;
            } else {
                settings.println("false");
                ChatBox.muted = false;
            }
            dispose();
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Preferences.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedEncodingException ex) {
            Logger.getLogger(Preferences.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
            settings.close();
        }
    }//GEN-LAST:event_jButton1ActionPerformed