Examples of addMouseListener()


Examples of java.awt.TrayIcon.addMouseListener()

      public void actionPerformed(ActionEvent e)
      {
        restoreFrame(mainFrame);
      }
    });
    trayIcon.addMouseListener(new MouseAdapter()
    {
      public void mouseReleased(MouseEvent e)
      {
        if (e.isPopupTrigger())
        {
View Full Code Here

Examples of java.awt.Window.addMouseListener()

        bt.setLocation(getAdjustedOrigin(pt));
        bt.setWindowMask();
        bt.setVisible(true);
        owner.addFocusListener(focusEar);
        owner.addMouseListener(mouseEar);
        parent.addMouseListener(mouseEar);
        parent.addComponentListener(componentEar);
        hidePopupTimer.start();
        isShowing = true;
      }
     
View Full Code Here

Examples of java.util.regex.Pattern.addMouseListener()

        frame.getContentPane().add(p);
        frame.pack();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        centerOnScreen(frame);
        frame.setVisible(true);
        p.addMouseListener(new MouseAdapter() {
                public void mousePressed(MouseEvent e) {
                    update();
                }
            });
View Full Code Here

Examples of javax.media.opengl.GLCanvas.addMouseListener()

    GLCanvas canvas = new GLCanvas(glCaps);
    add(canvas,BorderLayout.CENTER);
    canvas.addGLEventListener(renderer);       
    canvas.addKeyListener(renderer);
    canvas.addMouseMotionListener(renderer);
    canvas.addMouseListener(renderer);
    canvas.requestFocus();
  }   
 
  public static void main(String[] args) {
    new Frame().setVisible(true);
View Full Code Here

Examples of javax.media.opengl.awt.AWTGLAutoDrawable.addMouseListener()

           
    gl.glEnable(GL2.GL_NORMALIZE);
               
    if (drawable instanceof AWTGLAutoDrawable) {
        AWTGLAutoDrawable awtDrawable = (AWTGLAutoDrawable) drawable;
        awtDrawable.addMouseListener(this);
        awtDrawable.addMouseMotionListener(this);
    }
  }
   
  public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {
View Full Code Here

Examples of javax.media.opengl.awt.GLCanvas.addMouseListener()

        } else {
            final GLCanvas glCanvas = new GLCanvas(glcaps);

            final AwtListener listener = new AwtListener();
            glCanvas.addKeyListener(listener);
            glCanvas.addMouseListener(listener);
            glCanvas.addMouseMotionListener(listener);
            glCanvas.addMouseWheelListener(listener);

            drawable = glCanvas;
        }
View Full Code Here

Examples of javax.swing.JButton.addMouseListener()

      button.setIcon(icon);
      button.setDisabledIcon(icon);
      button.setVerticalTextPosition(SwingConstants.BOTTOM);
      button.setHorizontalTextPosition(SwingConstants.CENTER);
      button.setFont(new Font("Dialog", Font.PLAIN, 10));
      button.addMouseListener(this);
      addMouseAdapterForHandCursorToComponent(button);
      button.setContentAreaFilled(false);

      // Set up the available ActionButtons for dragging
      DragSource d = new DragSource();
View Full Code Here

Examples of javax.swing.JCheckBox.addMouseListener()

        name = Installer.resources.getString("packageName"+i+os);
      } catch (MissingResourceException e1) {
        name = Installer.resources.getString("packageName"+i);
      }
      JCheckBox cb = new JCheckBox(name, defaultState>=1);
      cb.addMouseListener(new TipListener("packageTip"+i));
      if (defaultState==2) cb.setEnabled(false);
      boxes.add(cb);
      cb.setAlignmentX(Component.LEFT_ALIGNMENT);
      boxPanel.add(cb);
    }
View Full Code Here

Examples of javax.swing.JComponent.addMouseListener()

      final JComponent component = (JComponent) value;

      component.setOpaque(true);

      if (component.getMouseListeners().length == 0) {
        component.addMouseListener(new MouseAdapter() {
          @Override
          public void mouseClicked(MouseEvent e) {
            MouseEvent newEvent = SwingUtilities.convertMouseEvent(component, e, _table);
            _table.consumeMouseClick(newEvent);
          }
View Full Code Here

Examples of javax.swing.JEditorPane.addMouseListener()

      editorPane.setText(html.toString());
      _component.add(editorPane, "3, 1, 3, 1");

      _component.addMouseListener(new PluginComponentMouseAdapter(editorPane, checkbox));
      editorPane.addMouseListener(new PluginComponentMouseAdapter(editorPane, checkbox));
    }


    JPanel getComponent() {
      return _component;
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.