public JToggleGroup(int type,Object[] data){
  this(type,new DefaultListModel(),new DefaultListSelectionModel());
  DefaultListModel model=(DefaultListModel)m_data;
  for (int i=0; i < data.length; ++i) {
    model.addElement(data[i]);
  }
  initUI();
}

public JToggleGroup ( int type , Object [ ] data ) { this ( type , new DefaultListModel ( ) , new DefaultListSelectionModel ( ) ) ; DefaultListModel model = ( DefaultListModel ) m_data ; for ( int i = 0 ; i < data . length ; ++ i ) { model . addElement ( data [ i ] ) ; } initUI ( ) ; }
create a new jtogglegroup .
