is Mouse Middle Click - Java Swing

Java examples for Swing:Mouse Event

Description

is Mouse Middle Click

Demo Code

//package com.java2s;

import java.awt.event.MouseEvent;
import javax.swing.SwingUtilities;

public class Main {
    public static boolean isMiddleClick(MouseEvent me) {
        return SwingUtilities.isMiddleMouseButton(me);
    }/*from  w  ww. j  a v a 2s.c  o  m*/
}

Related Tutorials