I am writing a java application that makes use of swing. The two main methods i am using are called Main and logInScreen. I have a variable in login screen that is initially set to "Empty", but will then be set to "Y" if a button is pressed using a setter(inside of an action listener). The problem i'm having is that i can't access this value in the main method by using a getter. Does anyone know what the problem is?I am writing a java application that makes use