Ejemplo n.º 1
0
  public void install(RootPaneContainer rpc) {
    if (getParent() != rpc.getLayeredPane())
      rpc.getLayeredPane().add(this, JLayeredPane.POPUP_LAYER);

    if (rootPaneInUse != null) rootPaneInUse.removeComponentListener(rootPaneComponentListener);

    rootPaneInUse = rpc.getRootPane();
    setBounds(0, 0, rootPaneInUse.getWidth(), rootPaneInUse.getHeight());
    setVisible(true);
    rootPaneInUse.addComponentListener(rootPaneComponentListener);
  }