toolBar.addFocusListener(toolBarFocusListener);
if (toolBarFocusListener != null) { int count = toolBar.getComponentCount(); for (int i = 0; i < count; i++) toolBar.getComponent(i).addFocusListener(toolBarFocusListener); }
  protected void installListeners()  {    dockingListener = createDockingListener();    toolBar.addMouseListener(dockingListener);    toolBar.addMouseMotionListener(dockingListener);    propertyListener = createPropertyListener();    toolBar.addPropertyChangeListener(propertyListener);    toolBarContListener = createToolBarContListener();    toolBar.addContainerListener(toolBarContListener);    windowListener = createFrameListener();    floatFrame.addWindowListener(windowListener);    toolBarFocusListener = createToolBarFocusListener();    toolBar.addFocusListener(toolBarFocusListener);  }