public void mouseExited(HoverEvent event) {
    if (event.getSource() instanceof TabbedPanel) {
      TabbedPanel tp = (TabbedPanel) event.getSource();
      tp.removeTabListener(tabListener);
      if (titleBarPropsAdded && tp.getSelectedTab() != null) {
        DockingWindow w = ((WindowTab) tp.getSelectedTab()).getWindow();
        if (w instanceof View)
          removeViewTitleBarProperties((View) w);
      }

      tpTabAction.mouseExited(event);
    }
    else if (event.getSource() instanceof TitledTab) {
      WindowTab tab = (WindowTab) event.getSource();
      tab.removeTabListener(tabListener);
      if (titleBarPropsAdded && tab.getWindow() instanceof View)
        removeViewTitleBarProperties((View) tab.getWindow());

      tabTpAction.mouseExited(event);
    }
  }