Package java.awt

Examples of java.awt.Container.addComponentListener()


    protected void configureEnclosingScrollPane() {
      super.configureEnclosingScrollPane();
      Container p = getParent();
      if (p instanceof JViewport) {
        p.setBackground(EVEN_ROW_COLOR);
        p.addComponentListener(new ComponentAdapter() {
          @Override
          public void componentResized(ComponentEvent e) {
            adjustLastColumn();
          }
        });
View Full Code Here


        Container container = this.getParent();
        while (container != null) {
            if (container instanceof Window) {
                windowParent = (Window)container;
            }
            container.addComponentListener(eventCatcher);
            container.addComponentListener(canvasViewEventCatcher);
            containerParentList.add(container);
            container = container.getParent();
        }
View Full Code Here

        while (container != null) {
            if (container instanceof Window) {
                windowParent = (Window)container;
            }
            container.addComponentListener(eventCatcher);
            container.addComponentListener(canvasViewEventCatcher);
            containerParentList.add(container);
            container = container.getParent();
        }

        this.addComponentListener(eventCatcher);
View Full Code Here

      layeredPane.setLayer(this, JLayeredPane.POPUP_LAYER);
      layeredPane.add(this);
      Container container = parentComponent;
      while (container != null) {
        if (container.getParent() instanceof JTabbedPane) {
          container.addComponentListener(new ComponentAdapter() {
            @Override
            public void componentHidden(ComponentEvent e) {
              ancestorComponentHidden();
            }
            @Override
View Full Code Here

      layeredPane.setLayer(this, JLayeredPane.POPUP_LAYER);
      layeredPane.add(this);
      Container container = parentComponent;
      while (container != null) {
        if (container.getParent() instanceof JTabbedPane) {
          container.addComponentListener(new ComponentAdapter() {
            @Override
            public void componentHidden(ComponentEvent e) {
              ancestorComponentHidden();
            }
            @Override
View Full Code Here

    frame.getRootPane().getGlassPane().addMouseMotionListener(glassPaneDispatcher);

    Container parent = frame.getParent();
    if (parent != null)
      {
        parent.addComponentListener(componentListener);
      }
  }

  /**
   * This method uninstalls the defaults for the JInternalFrame.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.