Search:

Type: Posts; User: lancergiirl

Search: Search took 0.33 seconds.

  1. Replies
    6
    Views
    1,368

    [SOLVED] Re: Send Int to Another Class Help

    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 " +...
  2. Replies
    6
    Views
    1,368

    [SOLVED] Re: Send Int to Another Class Help

    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 +...
  3. Replies
    6
    Views
    1,368

    [SOLVED] Re: Send Int to Another Class Help

    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
  4. Replies
    6
    Views
    1,368

    [SOLVED] Send Int to Another Class Help

    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...
Results 1 to 4 of 4