Ok im lost in trying to create a button array to test them out with an if statement in the actionlistner method. I need to create 2 buttons one name "Go" and another named "Clear" for an application. In the actionlistener i then have to use an if statement to test which button was pressed and perform the rest of the code depending which of the buttons was pressed. This is what i have came up with thus far and this section of code alone gets me 18 errors.
Panel buttonPanel = new Panel(); Button buttons = new Button; buttons = new Button; buttons = new Button("Go"); buttons = new Button("Clear");