Lines Matching defs:button
169 1<<14, //4th phisical button (this is not a wheel!)
197 * A method to obtain a mask for any existing mouse button.
205 * @param button is a number to represent a button starting from 1.
208 * int button = InputEvent.getMaskForButton(1);
212 * int button = InputEvent.getMaskForButton(MouseEvent.BUTTON1);
219 * <b>button </b> <b>returned mask</b>
226 * The button masks for the extra buttons returned by this method have no assigned names like the
227 * first three button masks.
236 * @throws IllegalArgumentException if {@code button} is less than zero or greater than the number
237 * of button masks reserved for buttons
244 public static int getMaskForButton(int button) {
245 if (button <= 0 || button > BUTTON_DOWN_MASK.length) {
246 throw new IllegalArgumentException("button doesn\'t exist " + button);
248 return BUTTON_DOWN_MASK[button - 1];
423 * For example, if the user presses <b>button 1</b> followed by
424 * <b>button 2</b>, and then releases them in the same order,
517 buf.append(Toolkit.getProperty("AWT.button"+buttonNumber, "Button"+buttonNumber));