Yes I did get that error in the first post also.
Okay, I have added refToOtherClass.otherClassVariable as
Window2.countCorrectAnswers
JLabel results = new JLabel("You answered " +...
Type: Posts; User: lancergiirl
Yes I did get that error in the first post also.
Okay, I have added refToOtherClass.otherClassVariable as
Window2.countCorrectAnswers
JLabel results = new JLabel("You answered " +...
I receive the following compiler error:
----jGRASP exec: javac -g Window3.java
Window3.java:29: error: cannot find symbol
JLabel results = new JLabel("You answered " + countCorrectAnswers +...
I have countCorrectAnswers defined and initialized in Window2.java
No, Window2.java should be the only location where the variable is defined as a public int
I need it printed in Window3.java
Hello!
I'm attempting to increment the correct answers of radio buttons in Window2.java then I am trying to pass the final value to Window3.java to display it in a JLabel. I have attached the...