class Accion implements ActionListener
{
public void acionPerformed (ActionEvent e)
{
if (e.getSource() == Item[0])
// accion 1
else (e.getSource() == Item[1])
// accion 2
// etc, etc.
}
}
...
Accion accion = new Action();
for (i=0;i<NUMERO_ITEMS;i++)
Item[i].addActionListener (accion);