Package javax.swing

Examples of javax.swing.JButton.addMouseListener()


    }

    if (_propertyDescriptor.isArray()) {
      final JButton reorderColumnsButton = WidgetFactory.createSmallButton(REORDER_COLUMN_ICON_PATH);
      reorderColumnsButton.setToolTipText("Reorder columns");
      reorderColumnsButton.addMouseListener(buttonMouseListener);
      reorderColumnsButton.addActionListener(new ReorderColumnsActionListener(_propertyDescriptor, _beanJobBuilder));
      panel.add(reorderColumnsButton);
    }

    _popup = new JPopupMenu();
View Full Code Here


    // view selection button
    JButton viewButton = new JButton(viewIcon);

    makeViewPopupMenu();

    viewButton.addMouseListener(new MouseAdapter()
      {
        public void mousePressed(MouseEvent e) {
          showPopup(e);
        }
View Full Code Here

          });
        sortPopupMenu.add(item);
        group.add(item);
      }

      sortButton.addMouseListener(new MouseAdapter() {
          public void mousePressed(MouseEvent e) {
            showPopup(e);
          }
          public void mouseReleased(MouseEvent e) {
            showPopup(e);
View Full Code Here

        JPanel checkoutPane = new JPanel( );
        JButton button = new JButton( "Checkout" );
        button.setVerticalTextPosition( AbstractButton.CENTER );
        button.setHorizontalTextPosition( AbstractButton.LEADING );
        //attach handler to assert items into working memory
        button.addMouseListener( new CheckoutButtonHandler( ) );
        button.setActionCommand( "checkout" );
        checkoutPane.add( button );
        bottomHalf.add( checkoutPane, BorderLayout.NORTH );

        button = new JButton( "Reset" );
View Full Code Here

        button = new JButton( "Reset" );
        button.setVerticalTextPosition( AbstractButton.CENTER );
        button.setHorizontalTextPosition( AbstractButton.TRAILING );
        //attach handler to assert items into working memory
        button.addMouseListener( new ResetButtonHandler( ) );
        button.setActionCommand( "reset" );
        checkoutPane.add( button );
        bottomHalf.add( checkoutPane, BorderLayout.NORTH );

        //Create output area, imbed in scroll area an add to bottomHalf parent
View Full Code Here

                for (Node n : graph.getNodes().toArray()) {
                    n.getNodeData().setSize(size);
                }
            }
        });
        resetSizeButton.addMouseListener(new MouseAdapter() {

            @Override
            public void mouseClicked(MouseEvent e) {

                if (SwingUtilities.isRightMouseButton(e)) {
View Full Code Here

        JButton bi;

        MainActionListener actionListener = new MainActionListener();

        bi = new JButton(Main.globalActionCollection.getAction(Constantes.NEW ));
        bi.addMouseListener(handler);
        bi.setText("");
        this.add(bi);

        bi = new JButton(Main.globalActionCollection.getAction(Constantes.OPEN));
        bi.addMouseListener(handler);
View Full Code Here

        bi.addMouseListener(handler);
        bi.setText("");
        this.add(bi);

        bi = new JButton(Main.globalActionCollection.getAction(Constantes.OPEN));
        bi.addMouseListener(handler);
        bi.setText("");
        this.add(bi);

        bi = new JButton(Main.globalActionCollection.getAction(Constantes.SAVE));
        bi.addMouseListener(handler);
View Full Code Here

        bi.addMouseListener(handler);
        bi.setText("");
        this.add(bi);

        bi = new JButton(Main.globalActionCollection.getAction(Constantes.SAVE));
        bi.addMouseListener(handler);
        bi.setText("");
        this.add(bi);

        bi = new JButton(Main.globalActionCollection.getAction(Constantes.SAVEAS));
        bi.addMouseListener(handler);
View Full Code Here

        bi.addMouseListener(handler);
        bi.setText("");
        this.add(bi);

        bi = new JButton(Main.globalActionCollection.getAction(Constantes.SAVEAS));
        bi.addMouseListener(handler);
        bi.setText("");
        this.add(bi);

        this.add(new JToolBar.Separator());
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.