Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    19
    Views
    2,044

    Re: Tic Tac Toe ActionPerformed Issue

    To see where the value of WinnerString is set and where it is changed, add a println after EVERY place it is changed. The print outs should show you where is its values are changing.

    Your example...
  2. Replies
    19
    Views
    2,044

    Re: Tic Tac Toe ActionPerformed Issue

    What is the relationship between the button and blank string?

    Please post the code showing where this print is being done and where the value is set to X.
    I don't understand how that is...
  3. Replies
    19
    Views
    2,044

    Re: Tic Tac Toe ActionPerformed Issue

    Since he's changed the code, I'll wait for the OP to say where the problems are now.

    Then I'll recommend that he add some printlns to print out the values of the variables that are used for the...
  4. Replies
    19
    Views
    2,044

    Re: Tic Tac Toe ActionPerformed Issue

    Do you have a list of the combinations that do not work?
    Have you tried adding printlns that display the variables' values for those combinations to see where your logic problem is?
  5. Replies
    19
    Views
    2,044

    Re: Tic Tac Toe ActionPerformed Issue

    Did you replace all your usage of == for String compares to use the equals() method?
  6. Replies
    19
    Views
    2,044

    Re: Tic Tac Toe ActionPerformed Issue

    Can you restate your problem at this point after you have made some program changes.

    Have you tried debugging your code by adding printlns to show the values of variables as the code is executing...
  7. Replies
    19
    Views
    2,044

    Re: Tic Tac Toe ActionPerformed Issue

    MyWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    AppletViewer complained with this one. Applets can not exit the JVM.
    Why use a separate JFrame instead of the Applet for displaying the...
  8. Replies
    19
    Views
    2,044

    Re: Tic Tac Toe ActionPerformed Issue

    Please post the code in the forum so all can see it.


    Can you show which combinations are failing?
Results 1 to 8 of 8