How do you change a global variable\'s value from user input (example the input from JTextfield will replace the numerical value of a global variable)?