Examples of ComponentAdapter


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

Examples of java.awt.event.ComponentAdapter

     */
    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

Examples of java.awt.event.ComponentAdapter

                        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

Examples of java.awt.event.ComponentAdapter

     */
    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

Examples of java.awt.event.ComponentAdapter

        addMouseListener(listener);
        addMouseMotionListener(listener);

        addGVTTreeRendererListener(listener);

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

Examples of java.awt.event.ComponentAdapter

                        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

Examples of java.awt.event.ComponentAdapter

        addMouseListener(listener);
        addMouseMotionListener(listener);

        addGVTTreeRendererListener(listener);

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

Examples of java.awt.event.ComponentAdapter

                        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

Examples of net.xoetrope.registry.ComponentAdapter

  public ComponentAdapter getComponentAdapter( String type )
  {
    Enumeration enumeration = componentFactories.keys();
    while ( enumeration.hasMoreElements() ) {
      XComponentConstructor factory = ( XComponentConstructor )componentFactories.get( enumeration.nextElement() );
      ComponentAdapter ca = factory.getComponentAdapter( type );
      if ( ca != null )
        return ca;
    }
    return null;
  }
View Full Code Here

Examples of org.apache.servicemix.jbi.event.ComponentAdapter

                onInternalEndpointUnregistered(event, true);
            }
        };
        broker.getContainer().addListener(endpointListener);
        // Create and register component listener
        componentListener = new ComponentAdapter() {
            public void componentStarted(ComponentEvent event) {
                onComponentStarted(event);
            }

            public void componentStopped(ComponentEvent event) {
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.