Package java.awt.event

Examples of java.awt.event.ComponentAdapter


      }
    }

    mContent = panelBuilder.getPanel();

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


    this.setFont( new Font("Default", Font.PLAIN, 9) );
    m_fm = this.getFontMetrics( this.getFont() );
    this.setToolTipText("");
    FlowLayout fl= new FlowLayout(FlowLayout.LEFT);
    this.setLayout(fl);
    this.addComponentListener( new ComponentAdapter() {
      public void componentResized(ComponentEvent ce) {
        if(m_data!=null) {
//          calcGraph();
        }
      }
View Full Code Here

        setFont(ToolBar.TEXT_FONT);
        addMouseAdapter(this);
        setFocusPainted(false);

        // hide & seek
        toolbar.addComponentListener(new ComponentAdapter(){
            public void componentResized(ComponentEvent e){
              setVisible(toolbar.getComponentCount() > 1 && !isVisible(toolbar.getComponent(toolbar.getComponentCount()-1), null));
            }
        });
View Full Code Here

    listBoxPnRight.add(btnPanel2, BorderLayout.EAST);

    centerPn.add(listBoxPnRight);

    final JPanel result = new JPanel(new BorderLayout());
    result.addComponentListener(new ComponentAdapter() {

      @Override
      public void componentHidden(ComponentEvent e) {
        if (e.getComponent() == result) {
          mRefreshListTimer = null;
View Full Code Here

    mFindAsYouType.installKeyListener(mFunctionGroup);
    mFindAsYouType.installKeyListener(mActionsPane.getVerticalScrollBar());
    mFindAsYouType.installKeyListener(scrollPane.getVerticalScrollBar());

    mFindAsYouType.getCloseButton().addComponentListener(
        new ComponentAdapter() {
          @Override
          public void componentHidden(ComponentEvent e) {
            if (mTextSearch != null) {
              mTextSearch.setText(mLocalizer.msg("search", "Search Text"));
            }
View Full Code Here

    /**
     * The default constructor for the Layer. All of the attributes
     * are set to their default values.
     */
    public TimerLocationLayer() {
        addComponentListener(new ComponentAdapter() {
            public void componentShown(ComponentEvent e) {
                if (e.getComponent() == layer && getAutoTimer()
                        && timerButton != null && !timerButton.isSelected()) {

                    timerButton.doClick();
View Full Code Here

    public void showPalette() {

        WindowSupport ws = getWindowSupport();
        if (ws == null) {
            ws = createWindowSupport();
            paletteListener = new ComponentAdapter() {
                public void componentShown(ComponentEvent e) {
                    firePaletteEvent(e);
                }

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

        getContentPane().add(buddyList);
        pack();

        setPreferredDimensions();
        setPreferredLocation();
        addComponentListener(new ComponentAdapter() {
            public void componentMoved(ComponentEvent e) {
                BuddyList.getInstance().saveSettings();
            }
        });
    }
View Full Code Here

        renderComponent.addKeyListener(keyListener);
        addKeyListener(keyListener);
        //
        // Scale the video output in response to this component being resized
        //
        addComponentListener(new ComponentAdapter() {

            @Override
            public void componentResized(ComponentEvent arg0) {
                scaleVideoOutput();
            }
View Full Code Here

                quit.setOpaque(false);
                controls.add(buttonPanel, BorderLayout.NORTH);
                controls.setOpaque(false);
                buttonPanel.setOpaque(false);
               
                layeredPane.addComponentListener(new ComponentAdapter() {

                    @Override
                    public void componentResized(ComponentEvent e) {
                        JComponent c = (JComponent) e.getComponent();
                        Rectangle r = c.getBounds();
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.