frame.addVetoableChangeListener(internalFrameVetoableChangeListener);
  protected void installListeners()  {    glassPaneDispatcher = createGlassPaneDispatcher();    createInternalFrameListener();    borderListener = createBorderListener(frame);    componentListener = createComponentListener();    propertyChangeListener = createPropertyChangeListener();    internalFrameVetoableChangeListener = new InternalFramePropertyChangeListener();    frame.addMouseListener(borderListener);    frame.addMouseMotionListener(borderListener);    frame.addInternalFrameListener(internalFrameListener);    frame.addPropertyChangeListener(propertyChangeListener);    frame.addVetoableChangeListener(internalFrameVetoableChangeListener);    frame.getRootPane().getGlassPane().addMouseListener(glassPaneDispatcher);    frame.getRootPane().getGlassPane().addMouseMotionListener(glassPaneDispatcher);  }