阅读背景:

Java Swing应用程序 - Setter不工作

来源:互联网 

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




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: