Package java.awt.event

Examples of java.awt.event.MouseListener


           closeAll();   
       }};
    systemPopup.add(closeAll);

    systemPopup.addPopupMenuListener(this);
    MouseListener l = new MouseAdapter(){
       public void mousePressed(MouseEvent e) {
         show(e);
       }
       public void mouseClicked(MouseEvent e) {
         show(e);
View Full Code Here


    JScrollPane scrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
   
    mainWindow.addToSideBar(scrollPane, 1);

    // add selection listeners
    MouseListener ml = new MouseAdapter() {
      public void mousePressed(MouseEvent e) {
        int selRow = tree.getRowForLocation(e.getX(), e.getY());
        TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());
        if(selRow != -1) {
          if(e.getClickCount() == 1) {
View Full Code Here

            pixels[i] = 0xff000000;
        }
        BuffImg.setData(raster);
       
        // Mouse Event use for Lightpen emulation
        MouseListener _Click = new MouseListener() {
            public void mouseClicked(MouseEvent e) {
            }

            public void mouseEntered(MouseEvent e) {
            }
View Full Code Here

         * basically those that performs actions once clicked
         */
        public void addLabelsListeners() {
            Cursor hand = new Cursor(Cursor.HAND_CURSOR);
           
            MouseListener ml = new MouseAdapter() {
                Color oldColor = null;
                public void mouseClicked(MouseEvent e) {
                    labelsHandler(e);
                }
            };
View Full Code Here

  static void init(final BrowserAction action, final MessageHeaderTable table, DataFlavor[] myFlavours) {
    table.setDragEnabled(true);
    table.setTransferHandler(new MessageHeaderTransferHandler(action));

    final MouseListener ml = new MouseAdapter() {
      @Override
      public void mousePressed(MouseEvent e) {
        if (SwingUtilities.isMiddleMouseButton(e)) {
          table.clearSelection();
        } else if (SwingUtilities.isLeftMouseButton(e)) {
View Full Code Here

    setPreferredSize(new Dimension(462, 398));
    initFields();
    for (Hexagon item : fields.values()) {
      getRoot().add(item);
    }
    this.addMouseListener(new MouseListener() {
      @Override public void mouseReleased(MouseEvent e) {}
      @Override public void mousePressed(MouseEvent e) {}
      @Override public void mouseExited(MouseEvent e) {}
      @Override public void mouseEntered(MouseEvent e) {}
     
View Full Code Here

    d = new JDialog(owner);
    d.setUndecorated(true);
    d.setFocusableWindowState(false);
    d.setFocusable(false);
    list = new JList();
    list.addMouseListener(new MouseListener() {
      private int selected;

      @Override
      public void mousePressed(MouseEvent e) {
      }
View Full Code Here

        }
       
        if (toolTip != null) {
            this.setText(text + " \n(get more information...)");
            this.setToolTipText("Get additional information for " + text);
            this.addMouseListener(new MouseListener() {
                @Override public void mouseReleased(MouseEvent e) {}
                @Override public void mousePressed(MouseEvent e) {}
                @Override public void mouseExited(MouseEvent e) {}
                @Override public void mouseEntered(MouseEvent e) {}
View Full Code Here

        this.setBackground(Color.green);
        if (a != null) {
            setAction(a);
        }
       
        this.addMouseListener(new MouseListener() {
            @Override public void mouseReleased(MouseEvent e) {}
            @Override public void mousePressed(MouseEvent e) {}
            @Override public void mouseExited(MouseEvent e) {}
            @Override public void mouseEntered(MouseEvent e) {}
View Full Code Here

    @Override
    public JComponent getAdditionalInfo() {
        JPanel panel = new JPanel(new GridLayout(3, 1));
        JButton butt1 = new JButton("Execute GNU Plot");
        butt1.setBackground(new Color(100, 100, 255));
        butt1.addMouseListener(new MouseListener() {
           
            @Override public void mouseReleased(MouseEvent e) {}
            @Override public void mousePressed(MouseEvent e) {}
            @Override public void mouseExited(MouseEvent e) {}
            @Override public void mouseEntered(MouseEvent e) {}
View Full Code Here

TOP

Related Classes of java.awt.event.MouseListener

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.