Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    1,829

    Re: Application Continued (problem)

    Oops, my bad. the "Add Contact" needs to be in quotes to denote that it's a string (the getActionCommand() method returns a String, so you must compare it to a String).

    If you want to compare with...
  2. Replies
    6
    Views
    1,829

    Re: Application Continued (problem)

    Ah. The getActionCommand() for the JButton class returns the caption that you have the button under. I just put ADD because I thought that's what the button said. You'll need to change it to "Add...
  3. Replies
    6
    Views
    1,829

    Re: Application Continued (problem)

    mmm... long code :P

    I'll tell you how you can do this, but I'll leave the implementation up to you.

    Add your class to the ActionListener list of the button, and then when that ActionEvent is...
Results 1 to 3 of 3