I have a variable checkMate, and a jTextField, I am having problems assigning the value that I input into the jTextField to the variable checkMate. It keeps returning 0, instead of the value I enter.
private int checkMate; String userTempLowB = Integer.toString(userTempLow); private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { saveUserSettings(); } public void saveUserSettings(){ userTempLowB = jTextField15.getText(); System.out.println(""+userTempLowB); }