Adesso non l'ho provato ma dovrebbe funzionare.

Puoi impostare qualcosa del genere...

codice:
public void makePanel( Object[] arg)
{
   label[] = new JLabel[arg.length);
   button[] = new JButton[arg.lentgh];

   for( int count = 0;count < arg.length; count++)
   {
      label[count] = new JLabel( count + " " + arg.toString() );
      button[count] = new JButton( count + " " + arg.toString() );
      this.add( label[count]);
      this.add( button[count]);
   }
 }
Ovviamente te lo devi adattare