Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: Trying to create a battleship game but am having ActionListener issues due to sco

    Have you tried debugging your code to check the values of the variables that are used by adding printlns to show them as the code executes?
  2. Re: Trying to create a battleship game but am having ActionListener issues due to sco

    Have you tried debugging your code to check the values of the variables that are used by adding printlns to show them as the code executes?
  3. Re: Trying to create a battleship game but am having ActionListener issues due to sco

    yes that is it.
  4. Re: Trying to create a battleship game but am having ActionListener issues due to sco

    You wouldn't unless you read the API doc. Did you do that and use Find for clientproperty?
  5. Re: Trying to create a battleship game but am having ActionListener issues due to sco

    The getSource method will return a reference to the button that was the source of the event.
    You can use the JComponent class's ClientProperties to save data with any Swing component, like a custom...
  6. Re: Trying to create a battleship game but am having ActionListener issues due to sco

    Write a small test program with inner classes and see if the inner class can access outer class level variables and methods.
  7. Re: Trying to create a battleship game but am having ActionListener issues due to sco

    Make the action listeners inner classes and make the "nothing" class variables.
Results 1 to 7 of 7