Ok thanks all of you for you response. Tried something like
At first didn't work, re-open eclipse and everything was fine!! Don't know the reason.
Now because I'm working first time with setActionCommand(
String); I would like to know, if you have an array of JButton,
you should create setActionComman(String); and addActionListener(listener) for each button individually? There is an simpler way?