Package java.awt.event

Examples of java.awt.event.ComponentListener


    else {
      window.setLocation(mXPos, mYPos);
    }
   
    if(mWindowCache == null || !window.equals(mWindowCache)) {
      window.addComponentListener(new ComponentListener() {
 
        public void componentHidden(ComponentEvent e) {
          savePos(e);
        }
 
View Full Code Here


    /*
     * Class under test for ComponentListener createComponentListener()
     */
    public void testCreateComponentListener() {
        ComponentListener listener1 = ui.createComponentListener();
        assertTrue("not null", listener1 != null);
        assertNotSame(listener1, ui.componentListener);
    }
View Full Code Here

    splitPane.setOneTouchExpandable(true);
    splitPane.setBorder(null);
    splitPane.setDividerLocation(Setting.get("divider.vert." + id, height));

    // Add save option
    c.addComponentListener(new ComponentListener() {

      @Override
      public void componentShown(ComponentEvent e) {
      }
View Full Code Here

    splitPane.setBorder(BorderFactory.createEmptyBorder());

    splitPane.setDividerLocation(Setting.get("divider.horizont." + id, width));

    // Add save option
    c.addComponentListener(new ComponentListener() {

      @Override
      public void componentShown(ComponentEvent e) {
      }
View Full Code Here

   
    frame.add(main, BorderLayout.CENTER);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
   
    main.addComponentListener(new ComponentListener(){

      public void componentHidden(ComponentEvent e) {
      }

      public void componentMoved(ComponentEvent e) {
View Full Code Here

      super(source, listener, listenerType);
    }

    @Override
    public void componentResized(final ComponentEvent event) {
      ComponentListener listener = get(event);
      if (listener != null) {
        listener.componentResized(event);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void componentMoved(final ComponentEvent event) {
      ComponentListener listener = get(event);
      if (listener != null) {
        listener.componentMoved(event);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void componentShown(final ComponentEvent event) {
      ComponentListener listener = get(event);
      if (listener != null) {
        listener.componentShown(event);
      }
    }
View Full Code Here

      }
    }

    @Override
    public void componentHidden(final ComponentEvent event) {
      ComponentListener listener = get(event);
      if (listener != null) {
        listener.componentHidden(event);
      }
    } 
View Full Code Here

                m_returnCode = OPTION_OK;
                onOK(evt);
            }
        });
        //set the OK button as the default button
        addComponentListener(new ComponentListener()
        {
            public void componentHidden(ComponentEvent evt)
            {
            }
View Full Code Here

TOP

Related Classes of java.awt.event.ComponentListener

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.