Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.30 seconds.

  1. Replies
    10
    Views
    1,409

    Re: Cookie Jar Program Issues

    You should compare Strings with the .equals method. The ActionEvent.getActionCommand() method returns a String. So, in your actionPerformed() method of your ButtonHandler, instead of saying:...
  2. Replies
    10
    Views
    1,409

    Re: Cookie Jar Program Issues

    You don't need an array for this, since you are merely counting. You should have 3 ints that are accessible by the entire CookieJarJPanel class. One int will represent the number of cookies in the...
Results 1 to 2 of 2