Package java.awt.event

Examples of java.awt.event.ComponentListener


    public HeavyweightWrapper(Component component, boolean heavyweight) {
        _component = component;
        if (_component != null) {
            ((JComponent) _component).putClientProperty("HeavyweightWrapper", this);
            _component.addComponentListener(new ComponentListener() {
                public void componentResized(ComponentEvent e) {
                }

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


    }
    else {
      UITools.setDialogLocationRelativeTo(dialog.getDialog(), getNode());
    }
    dialog.show();
    dialog.getDialog().addComponentListener(new ComponentListener() {
      public void componentShown(final ComponentEvent e) {
      }

      public void componentResized(final ComponentEvent e) {
      }
View Full Code Here

        FontChooser fontChooser1;        // Used to select a font.
        FontChooser fontChooser2;        // Used to select a font.
        JPanel      mainPanel;          // Main panel.
        JTabbedPane tabbedPane;
       
        header.addComponentListener(new ComponentListener() {

      public void componentHidden(ComponentEvent e) {}

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

         titleLabel.setText(Localizer.getString(StringId.NEW_PROJECT_2));
         backwardNavigationButton
                 .setToolTipText(Localizer.getString(StringId.TO_PREVIOUS_COMPONENT));
         forwardNavigationButton.setToolTipText(Localizer.getString(StringId.TO_NEXT_COMPONENT));

         this.addComponentListener(new ComponentListener()
         {
            public void componentResized(ComponentEvent e)
            {
               Rectangle b =
                       (e.getSource() != null ? ((Component) e.getSource()).getBounds() : null);
View Full Code Here

        builder.add(typeManagerPane, cc.xywh(1, 13, 7, 1));

        add(builder.getPanel(), BorderLayout.CENTER);

        this.addComponentListener(new ComponentListener() {

            int height;

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

        dialog.setLocation(appWindow.getLocation().x + (appWindow.getSize().width / 2 - wSize.width / 2),
                appWindow.getLocation().y + (appWindow.getSize().height / 2 - wSize.height / 2));

        // set the component listener
        final PosDialog  thisPosDialog = this;
        dialog.addComponentListener(new ComponentListener() {

            public void componentResized(ComponentEvent event) {
                this.reset();
            }
View Full Code Here

            public void actionPerformed( ActionEvent ev ) {
                selectionChanged();
            }
        });
       
        viewer.addComponentListener( new ComponentListener() {
            public void componentResized(ComponentEvent e) {
            }
           
            public void componentMoved(ComponentEvent e) {
            }
View Full Code Here

        this.view = view;
        putValue(SHORT_DESCRIPTION, desc);
        putValue(MNEMONIC_KEY, new Integer( mnemonic ) );
  putValue( ACCELERATOR_KEY, accelerator );
  view.addPhotoViewListener( this );
        view.addComponentListener( new ComponentListener () {
            public void componentResized(ComponentEvent e) {
            }

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

                ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
        if (comp instanceof TableTab) {
            pane.setVerticalScrollBar(((TableTab) comp).getVerticalScrollBar());
        }
        pane.addComponentListener(new ComponentListener() {
            @Override
            public void componentResized(ComponentEvent event) {
                int width = pane.getViewport().getWidth();
                comp.setSize(new Dimension(width, comp.getHeight()));
            }
View Full Code Here

     * @param minHeight
     */
    public static void setMinimumSizeManager(Window window, int minWidth,
                                             int minHeight) {
        ComponentListener[] listeners = window.getComponentListeners();
        ComponentListener listener = null;
        for (ComponentListener l : listeners) {
            if (l instanceof MinSizeComponentListener) {
                listener = l;
                break;
            }
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.