private Component createToolbar(){
  toolbar=new JToolBar();
  for (  String toolKey : getToolBarKeys()) {
    if (toolKey.equals("-")) {
      toolbar.add(Box.createHorizontalStrut(5));
    }
 else {
      toolbar.add(createTool(toolKey));
    }
  }
  toolbar.add(Box.createHorizontalGlue());
  return toolbar;
}

private Component createToolbar ( ) { toolbar = new JToolBar ( ) ; for ( String toolKey : getToolBarKeys ( ) ) { if ( toolKey . equals ( "-" ) ) { toolbar . add ( Box . createHorizontalStrut ( 5 ) ) ; } else { toolbar . add ( createTool ( toolKey ) ) ; } } toolbar . add ( Box . createHorizontalGlue ( ) ) ; return toolbar ; }
create the toolbar . by default this reads the resource file for the definition of the toolbar .
