7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6191390 8154328
27 * @summary Verify that ActionEvent is received with correct modifiers set.
28 * @modules java.desktop/java.awt:open
29 * @modules java.desktop/java.awt.peer
30 * @library ../../../../lib/testlibrary ../
31 * @library /java/awt/patchlib
32 * @build java.desktop/java.awt.Helper
33 * @build ExtendedRobot SystemTrayIconHelper
34 * @run main ActionEventTest
35 */
36
37 import java.awt.Image;
38 import java.awt.TrayIcon;
39 import java.awt.SystemTray;
40 import java.awt.Robot;
41 import java.awt.EventQueue;
42 import java.awt.Point;
43 import java.awt.event.ActionEvent;
44 import java.awt.event.ActionListener;
45 import java.awt.event.InputEvent;
46 import java.awt.event.KeyEvent;
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6191390 8154328
27 * @key headful
28 * @summary Verify that ActionEvent is received with correct modifiers set.
29 * @modules java.desktop/java.awt:open
30 * @modules java.desktop/java.awt.peer
31 * @library ../../../../lib/testlibrary ../
32 * @library /java/awt/patchlib
33 * @build java.desktop/java.awt.Helper
34 * @build ExtendedRobot SystemTrayIconHelper
35 * @run main ActionEventTest
36 */
37
38 import java.awt.Image;
39 import java.awt.TrayIcon;
40 import java.awt.SystemTray;
41 import java.awt.Robot;
42 import java.awt.EventQueue;
43 import java.awt.Point;
44 import java.awt.event.ActionEvent;
45 import java.awt.event.ActionListener;
46 import java.awt.event.InputEvent;
47 import java.awt.event.KeyEvent;
|