Package java.awt.event

Examples of java.awt.event.ComponentAdapter


        initButtons();
        updateButtons();

        // The button location must track the table layout.
        table.addComponentListener(
            new ComponentAdapter() {
                public void componentResized(ComponentEvent e) {
                    updateButtons();
                    repaint();
                }
            }
View Full Code Here


    ColorSelectionPreview(final ImageEditorEngine engine) {
        this.engine = engine;

        addComponentListener(
            new ComponentAdapter() {
                public void componentResized(ComponentEvent event) {
                    if (isShowing()) {
                        engine.update(null, false);
                    }
                }
View Full Code Here

  private final ErrorHandler errorHandler;

  public EnvelopeDialog(Window pOwner, ErrorHandler pErrorHandler, Envelope pEnvelope, boolean pAllowRemove) {
    super(pOwner);
    errorHandler = pErrorHandler;
    addComponentListener(new ComponentAdapter() {
      @Override
      public void componentShown(ComponentEvent e) {
        try {
          refreshFlameImage();
        }
View Full Code Here

        }
      }
    };
    this.addListener( winListener );

    waveView.addComponentListener( new ComponentAdapter() {
      public void componentResized( ComponentEvent e )
      {
        updateSelectionAndRepaint();
      }
    });
View Full Code Here

        winSize.width, winSize.height );
    GUIUtil.wrapWindowBounds( wr, sr );
    lastLeftTop.setLocation( wr.getLocation() );
    setBounds( wr );
//System.out.println( "winSize " + winSize + "; wr " + wr );
    waveView.addComponentListener( new ComponentAdapter() {
      public void componentResized( ComponentEvent e )
      {
        if( waveExpanded ) {
          final Dimension dNew = e.getComponent().getSize();
          dNew.height = (int) (dNew.height / hf + 0.5f);
View Full Code Here

  private TweenManager tweenManager;
  SLConfig currentCfg;
  boolean isTransitionPlaying = false;

  public SLPanel() {
    addComponentListener(new ComponentAdapter() {
      @Override public void componentResized(ComponentEvent e) {
        if (currentCfg != null) initialize(currentCfg);
      }
    });
  }
View Full Code Here

        gotFocus = true;
      }
    };
    addWindowListener(adapter);
    addWindowFocusListener(adapter);
    addComponentListener(new ComponentAdapter() {
      @Override
      public void componentShown(ComponentEvent ce) {
        optionPane.setValue(UNINITIALIZED_VALUE);
      }
    });
View Full Code Here

    SWT.error (SWT.ERROR_NOT_IMPLEMENTED, e);
  }
  if (handle == 0) SWT.error (SWT.ERROR_INVALID_ARGUMENT, null, " [peer not created]");

  final Shell shell = Shell.gtk_new (display, handle);
  final ComponentListener listener = new ComponentAdapter () {
    public void componentResized (ComponentEvent e) {
      display.syncExec (new Runnable () {
        public void run () {
          if (shell.isDisposed()) return;
          Dimension dim = parent.getSize ();
View Full Code Here

    private static void createAndShowGUI() {
        toolbar = new ToolBar();
        frame = new JFrame("Font Texture");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setIconImage(new ImageIcon(toolbar.getClass().getResource("icons/fonttexture.png")).getImage());
        frame.addComponentListener( new ComponentAdapter() {
            public void componentResized(ComponentEvent e)
            {
              int size = Math.max(frame.getWidth(), frame.getHeight());
              size = texture.setSize(size);
              frame.pack();
View Full Code Here

        canvas.setBounds(0, 0, width, height);

        // Fix bug 884
        canvas.setFocusTraversalKeysEnabled(false);

        panel.addComponentListener(new ComponentAdapter() {

            public void componentResized(final ComponentEvent e) {
                // workaround for race condition between EDT and MTGame renderer thread
                // when using JOGL 2.0. Need to stop MTGame renderer to update canvas
                ClientContextJME.getWorldManager().getRenderManager().setRunning(false);
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.