Examples of addMouseListener()


Examples of fr.soleil.comete.swing.StringButton.addMouseListener()

        StringButton button = super.initWidget();
        button.setActionName("Action");
        // remove actionlistener for actionPerformed not to be called automatically
        button.removeActionListener(button);
        // listen to the widget, useful for pressed and released notifications
        button.addMouseListener(this);
        return button;
    }

    @Override
    protected void initDAO() {
View Full Code Here

Examples of fr.soleil.comete.swing.Tree.addMouseListener()

        }

        ITreeNode rootNode = new BasicTreeNode();
        constructTree(rootNode, dataset.getRootGroup());
        tree.setRootNode(rootNode);
        tree.addMouseListener(archivingListener);

        panel.add(tree, BorderLayout.CENTER);

        final JLabel label = new JLabel("Click here to loose focus");
View Full Code Here

Examples of gov.nasa.arc.mct.gui.View.addMouseListener()

        AbstractComponent parentComponent = ((View) rootNode.getUserObject()).getManifestedComponent();
        View activeManifestation = parentComponent.getViewInfos(ViewType.NODE).iterator().next().createView(parentComponent);
        activeManifestation.setOpaque(false);
        activeManifestation.addMouseMotionListener(new WidgetDragger());
        activeManifestation.setTransferHandler(new WidgetTransferHandler());
        activeManifestation.addMouseListener(new MCTWindowOpener(parentComponent));
        activeManifestation.addMouseListener(new MCTPopupOpener(parentComponent, activeManifestation));
       
        // populate tabbed pane
        JComponent spUI = null;
        List<JComponent> UIs = new ArrayList<JComponent>();
View Full Code Here

Examples of info.aduna.clustermap.GraphPanel.addMouseListener()

      panel.removeMouseListener(listeners[1]);
    //}

    // adds our own MouseListener for opening
    // URL in applet context.
    panel.addMouseListener(new MouseAdapter() {
      public void mouseClicked(MouseEvent e) {
        if (e.getClickCount() == 1) {
          // the coord where the user has double-clicked
          int x = e.getX();
          int y = e.getY();
View Full Code Here

Examples of java.awt.Button.addMouseListener()

                    final Dialog d = new Dialog(parent);
                    d.setLayout(new FlowLayout());
                    d.setModal(true);
                    Button b = new Button("foobar");
                    b.addMouseListener(new MouseAdapter() {
                        public void mousePressed(MouseEvent me) {
                            d.setVisible(false);
                        }
                    });
                    d.add(b);
View Full Code Here

Examples of java.awt.Canvas.addMouseListener()

        int width = platform.graphics().ctx().scale.scaledCeil(config.width);
        int height = platform.graphics().ctx().scale.scaledCeil(config.height);
        canvas.setPreferredSize(new Dimension(width, height));
        _frame.getContentPane().add(canvas);

        canvas.addMouseListener(new MouseAdapter() {
            @Override public void mousePressed (MouseEvent e) {
                for (JavaNativeOverlay overlay : _overlays) {
                    final Component comp = overlay.component;
                    if (comp.contains(e.getX() - comp.getX(), e.getY() - comp.getY())) {
                        EventQueue.invokeLater(new Runnable() {
View Full Code Here

Examples of java.awt.Component.addMouseListener()

      Component  c2;
     
      for( int i = 0; i < c.getComponentCount(); i++ ) {
        c2 = c.getComponent( i );
        collObservedComponents.add( c2 );
        c2.addMouseListener( this );
        c2.addMouseMotionListener( this );
        if( c2 instanceof Container ) addMouseListeners( (Container) c2 )// recurse
      }
    }
   
View Full Code Here

Examples of java.awt.Container.addMouseListener()

    frame = new JFrame();//��ʼ�����漰�˵�
    frame.getContentPane().add(new Screen());
    frame.addKeyListener(this);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container contentPane = frame.getContentPane();
    contentPane.addMouseListener(this);
    contentPane.addMouseMotionListener(this);
   
    menuBar = new JMenuBar();
    gameMenu = new JMenu("��Ϸ");
    helpMenu =new JMenu("����");
View Full Code Here

Examples of java.awt.Frame.addMouseListener()

                mb.add(m);
            }
        });
        final PopupMenu popup = new PopupMenu("Popup");
        f.add(popup);
        f.addMouseListener(new MouseAdapter() {
            public void mousePressed(MouseEvent event) {
                if (event.isPopupTrigger()) {
                    popup.show(f, event.getX(), event.getY());
                }
            }
View Full Code Here

Examples of java.awt.Label.addMouseListener()

        UIUtil.gridBagAdd(p, l, gbc, GridBagConstraints.REMAINDER);
      }

      p.addMouseListener(this);
      l.addMouseListener(this);
      tl.addMouseListener(this);

      add(p);

      if (timeout > 0) {
        Thread t = new Thread() {
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.