Package java.awt.event

Examples of java.awt.event.ComponentAdapter


    Window anchestor = descriptor.getWindowAnchestor();
    if (anchestor instanceof RootPaneContainer) {
      glassPane = (Container) ((RootPaneContainer) anchestor).getGlassPane();

      anchestor.addComponentListener(new ComponentAdapter() {
        public void componentResized(ComponentEvent e) {
          if (toolWindow.getType() == ToolWindowType.SLIDING && toolWindow.isVisible())
            update();
        }
      });
View Full Code Here


        Window anchestor = descriptor.getWindowAnchestor();
        if (anchestor instanceof RootPaneContainer) {
            layeredPane = ((RootPaneContainer) anchestor).getLayeredPane();

            anchestor.addComponentListener(new ComponentAdapter() {
                public void componentResized(ComponentEvent e) {
                    if (toolWindow.getType() == ToolWindowType.SLIDING && toolWindow.isVisible())
                        update();
                }
            });
View Full Code Here

                }
                lastBounds = null;
            }
        });

        sheet.addComponentListener(new ComponentAdapter() {
            public void componentResized(ComponentEvent e) {
                valueAdjusting = true;
                try {
                    ((FloatingLiveTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING_LIVE)).setSize(
                            sheet.getWidth(),
View Full Code Here

            desktopPane.add(internalFrame);
            internalFrame.setVisible(true);
          }
        }

        desktopPane.addComponentListener(new ComponentAdapter() {
          @Override
          public void componentResized(ComponentEvent e) {
            Rectangle bounds = desktopPane.getBounds();
            int x = bounds.x;
            for (int i = 0; i < 4; i++) {
View Full Code Here

            this.splitPane = mySplitPane;

            this.splitPane.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY,
                    listener);

            this.splitPane.addComponentListener(new ComponentAdapter()
            {
                @Override
                public void componentResized(ComponentEvent e)
                {
                    if (state == SWITCH_STATE.SWITCHED_AWAY || state == SWITCH_STATE.SWITCHED_AWAY_AND_MOVED)
View Full Code Here

        this.dialog.getDialog().setDefaultCloseOperation(
                WindowConstants.DO_NOTHING_ON_CLOSE);
        this.dialog.getDialog().setCursor(SwingUtil.WAIT_CURSOR);

        this.dialog.getDialog().addComponentListener(new ComponentAdapter() {
            @Override
            public void componentShown(ComponentEvent e) {
                shown();
            }
        });
View Full Code Here

                                                             this.eltFenst,
                                                             this));
        }

        this.addComponentListener(
            new ComponentAdapter() {
                @Override
                public void componentResized(final ComponentEvent event) {
                    GuiSimulation.this.breite
                        = GuiSimulation.this.getSize().width;
                    GuiSimulation.this.hoehe
View Full Code Here

                                                             this.eltFenst,
                                                             this));
        }

        this.addComponentListener(
            new ComponentAdapter() {
                public void componentResized(final ComponentEvent event) {
                    GuiSimulation.this.breite
                        = GuiSimulation.this.getSize().width;
                    GuiSimulation.this.hoehe
                        = GuiSimulation.this.getSize().height;
View Full Code Here


  protected void setupThumbnailListeners() {
    // Listen to the graph view resizing events, so the
    // thumbnail can be updated appropriately
    controller.getGraphView().addComponentListener(new ComponentAdapter() {
      /**
       * Invoked when the component's size changes.
       */
      public void componentResized(ComponentEvent e) {
        fireThumbnailViewSourceEvent(new ThumbnailViewSourceEvent(GraphComponent.this), THUMBNAIL_EVENT_BOUNDS_CHANGED);
View Full Code Here

        );

    scrollRules = new JScrollPane(tblRules);

    scrollRules.addComponentListener(
        new ComponentAdapter() {

          @Override
          public void componentResized(ComponentEvent ce
          ) {
            super.componentResized(ce);
View Full Code Here

TOP

Related Classes of java.awt.event.ComponentAdapter

Copyright © 2018 www.massapicom. 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.