You don't need an 'if' statement to tell if a button is clicked - you add an ActionListener to it and the actionPerformed method is automatically called. It's the same for a combo box selection.
...
Type: Posts; User: dlorde
You don't need an 'if' statement to tell if a button is clicked - you add an ActionListener to it and the actionPerformed method is automatically called. It's the same for a combo box selection.
...
This kind of thing is usually done with a combo box - a dropdown list of items (e.g. names of states) from which you can select an item. Use an array of buttons if that's what you really want, but it...