public void addParameter(int index,String label,Component comp){
  JLabel lbl;
  JPanel panel;
  lbl=new JLabel(label.replace("" + GUIHelper.MNEMONIC_INDICATOR,""));
  lbl.setDisplayedMnemonic(GUIHelper.getMnemonic(label));
  lbl.setLabelFor(comp);
  panel=new JPanel(new FlowLayout(FlowLayout.LEFT));
  panel.add(lbl);
  panel.add(comp);
  if (index == -1) {
    m_Rows.add(panel);
    m_Labels.add(lbl);
    m_Parameters.add(comp);
  }
 else {
    m_Rows.add(index,panel);
    m_Labels.add(index,lbl);
    m_Parameters.add(index,comp);
  }
  update();
}

public void addParameter ( int index , String label , Component comp ) { JLabel lbl ; JPanel panel ; lbl = new JLabel ( label . replace ( "" + GUIHelper . MNEMONIC_INDICATOR , "" ) ) ; lbl . setDisplayedMnemonic ( GUIHelper . getMnemonic ( label ) ) ; lbl . setLabelFor ( comp ) ; panel = new JPanel ( new FlowLayout ( FlowLayout . LEFT ) ) ; panel . add ( lbl ) ; panel . add ( comp ) ; if ( index == - 1 ) { m_Rows . add ( panel ) ; m_Labels . add ( lbl ) ; m_Parameters . add ( comp ) ; } else { m_Rows . add ( index , panel ) ; m_Labels . add ( index , lbl ) ; m_Parameters . add ( index , comp ) ; } update ( ) ; }
inserts the label and component as new row at the specified row .
