Package java.awt.event

Examples of java.awt.event.ComponentAdapter


                        dialog.setSize(canvas.getSize().width
                                ,canvas.getSize().height);
                        dialog.setLocation(canvas.getLocationOnScreen().x
                                ,canvas.getLocationOnScreen().y);
                       
                        mainFrame.getFrame().addComponentListener(new ComponentAdapter() {

                            private void doChange() {
                                SwingUtilities.invokeLater(new Runnable() {
                                    public void run() {
                                        if (dialog != null && dialog.isVisible()) {
View Full Code Here


     */
    public CoverScreen(CoverScreenData coverScreenData,Dimension dim) {
        this.coverScreenData = coverScreenData;
        initComponents();
        csp = new CoverScreenMainPanel();
        csp.addComponentListener(new ComponentAdapter() {

            public void componentResized(ComponentEvent e) {
                Insets insets = ((JPanel)e.getComponent()).getInsets();
                Dimension size = closeIcon.getPreferredSize();
                closeIcon.setBounds((int) (((JPanel)e.getComponent()).getPreferredSize().getWidth()-size.width) + insets.left, insets.top,
View Full Code Here

                        coverScreenPanel.setPreferredSize(canvas.getSize());
                        dialog.setSize(canvas.getSize().width, canvas.getSize().height);
                        dialog.setLocation(canvas.getLocationOnScreen().x, canvas.getLocationOnScreen().y);

                        mainFrame.getFrame().addComponentListener(new ComponentAdapter() {
                            private void doChange() {
                                SwingUtilities.invokeLater(new Runnable() {
                                    public void run() {
                                        if (dialog != null && dialog.isVisible()) {
                                            Component cs = dialog.getComponent(0);
View Full Code Here

     */
    public CoverScreen(CoverScreenData coverScreenData,Dimension dim) {
        this.coverScreenData = coverScreenData;
        initComponents();
        csp = new CoverScreenMainPanel();
        csp.addComponentListener(new ComponentAdapter() {

            public void componentResized(ComponentEvent e) {
                Insets insets = ((JPanel)e.getComponent()).getInsets();
                Dimension size = closeIcon.getPreferredSize();
                closeIcon.setBounds((int) (((JPanel)e.getComponent()).getPreferredSize().getWidth()-size.width) + insets.left, insets.top,
View Full Code Here

        addMouseListener(listener);
        addMouseMotionListener(listener);

        addGVTTreeRendererListener(listener);

        addComponentListener(new ComponentAdapter() {
                public void componentResized(ComponentEvent e) {
                    if (updateRenderingTransform())
                        scheduleGVTRendering();
                }
            });
View Full Code Here

                        statusBar.setWidth(dim.width);
                        statusBar.setHeight(dim.height);
                    }
                }
            });
        svgCanvas.addComponentListener(new ComponentAdapter() {
                public void componentResized(ComponentEvent e) {
                    Dimension dim = svgCanvas.getSize();
                    if (svgDocument == null) {
                        statusBar.setWidth(dim.width);
                        statusBar.setHeight(dim.height);
View Full Code Here

        addMouseListener(listener);
        addMouseMotionListener(listener);

        addGVTTreeRendererListener(listener);

        addComponentListener(new ComponentAdapter() {
                public void componentResized(ComponentEvent e) {
                    updateRenderingTransform();
                    scheduleGVTRendering();
                }
            });
View Full Code Here

                        statusBar.setWidth(dim.width);
                        statusBar.setHeight(dim.height);
                    }
                }
            });
        svgCanvas.addComponentListener(new ComponentAdapter() {
                public void componentResized(ComponentEvent e) {
                    Dimension dim = svgCanvas.getSize();
                    if (svgDocument == null) {
                        statusBar.setWidth(dim.width);
                        statusBar.setHeight(dim.height);
View Full Code Here

    };
  }


  protected ComponentListener createComponentListener() {
    return new ComponentAdapter() {
      @Override
      public void componentHidden(final ComponentEvent e) {
        super.componentHidden(e);
        hidePopup();
      }
View Full Code Here

    jsp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, leftSide, rightSide);
    jsp.setDividerSize(8);
    jsp.setResizeWeight(1); // Make the left side expand when resizing
    // Add a listener for when the divider moves
    ((BasicSplitPaneUI)jsp.getUI()).getDivider().addComponentListener(new ComponentAdapter() {
      @Override
      public void componentMoved(ComponentEvent e) {
        // If the window is maximized, skip this
        if(GuiDesktop.getInstance().getExtendedState() == Frame.MAXIMIZED_BOTH)
          return;
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.