importjavax.swing.JPanel;/***ToolBarclassisapanelwhichholdsthetoolboxinit.**/publicclassToolBarextendsJPanel{privateToolBoxtoolBox;/** Creates a default ToolBar which creates a new toolbox. **/publicToolBar(){setLayout(null);toolBox=newToolBox();add(toolBox);}}