Jesper de Jong wrote:Do you already know how to add an action listener to a single button? If you know that, it's easy to do the same thing in a loop.
First of all, I'd split line 13 in two parts: creating the button and adding it to the frame, because you need a reference to the JButton object so that you can add an action listener to it:
Thank you very much....How could i miss that simple thing?..!!..I feel i am such a douche..
Thank you once again.
Ciao.