protected void fillFaceToolBar(JToolBar faceTB,ButtonGroup bg){
  for (  EditToolLoader loader : loaderList) {
    String[] classnames=loader.getEditableClasses();
    for (int i=0; i < classnames.length; i++) {
      ImageIcon icon=loader.getIcon(classnames[i]);
      JToggleButton btn=new JToggleButton(icon,false);
      btn.setToolTipText(loader.getPrettyName(classnames[i]));
      btn.setFocusable(false);
      btn.setActionCommand(classnames[i]);
      btn.addActionListener(this);
      bg.add(btn);
      faceTB.add(btn);
    }
  }
}

protected void fillFaceToolBar ( JToolBar faceTB , ButtonGroup bg ) { for ( EditToolLoader loader : loaderList ) { String [ ] classnames = loader . getEditableClasses ( ) ; for ( int i = 0 ; i < classnames . length ; i ++ ) { ImageIcon icon = loader . getIcon ( classnames [ i ] ) ; JToggleButton btn = new JToggleButton ( icon , false ) ; btn . setToolTipText ( loader . getPrettyName ( classnames [ i ] ) ) ; btn . setFocusable ( false ) ; btn . setActionCommand ( classnames [ i ] ) ; btn . addActionListener ( this ) ; bg . add ( btn ) ; faceTB . add ( btn ) ; } } }
fill the face ' s toolbar with buttons
