Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.awt.event.InputEvent;

public class Main {
    /** Return true if the Alt button was held when 'e' was generated. */
    public static boolean altPressed(InputEvent e) {
        return (e.getModifiersEx() & InputEvent.ALT_DOWN_MASK) != 0;
    }
}