< prev index next >

test/java/awt/Mouse/EnterExitEvents/FullscreenEnterEventTest.java

Print this page




  20 * or visit www.oracle.com if you need additional information or have any
  21 * questions.
  22 */
  23 
  24 import test.java.awt.regtesthelpers.Util;
  25 
  26 import javax.swing.*;
  27 import java.awt.*;
  28 import java.awt.event.InputEvent;
  29 import java.awt.event.MouseAdapter;
  30 import java.awt.event.MouseEvent;
  31 import java.lang.reflect.InvocationHandler;
  32 import java.lang.reflect.Method;
  33 import java.lang.reflect.Proxy;
  34 
  35 /*
  36  * @test
  37  * @bug 8013468
  38  * @summary Cursor does not update properly when in fullscreen mode on Mac
  39  *    The core reason of the issue was the lack of a mouse entered event in fullscreen


  40  * @library ../../regtesthelpers
  41  * @build Util
  42  * @author Petr Pchelko area=awt.event
  43  * @run main FullscreenEnterEventTest
  44  */
  45 public class FullscreenEnterEventTest {
  46 
  47     private static String OS = System.getProperty("os.name").toLowerCase();
  48 
  49     private static JFrame frame;
  50 
  51     private static volatile int mouseEnterCount = 0;
  52 
  53     private static volatile boolean windowEnteringFullScreen = false;
  54     private static volatile boolean windowEnteredFullScreen = false;
  55 
  56     public static void main(String[] args) throws Exception {
  57 
  58         if (!OS.contains("mac")) {
  59             System.out.println("The test is applicable only to Mac OS X. Passed");




  20 * or visit www.oracle.com if you need additional information or have any
  21 * questions.
  22 */
  23 
  24 import test.java.awt.regtesthelpers.Util;
  25 
  26 import javax.swing.*;
  27 import java.awt.*;
  28 import java.awt.event.InputEvent;
  29 import java.awt.event.MouseAdapter;
  30 import java.awt.event.MouseEvent;
  31 import java.lang.reflect.InvocationHandler;
  32 import java.lang.reflect.Method;
  33 import java.lang.reflect.Proxy;
  34 
  35 /*
  36  * @test
  37  * @bug 8013468
  38  * @summary Cursor does not update properly when in fullscreen mode on Mac
  39  *    The core reason of the issue was the lack of a mouse entered event in fullscreen
  40  * @requires (os.family == "mac")
  41  * @modules java.desktop/com.apple.eawt
  42  * @library ../../regtesthelpers
  43  * @build Util
  44  * @author Petr Pchelko area=awt.event
  45  * @run main FullscreenEnterEventTest
  46  */
  47 public class FullscreenEnterEventTest {
  48 
  49     private static String OS = System.getProperty("os.name").toLowerCase();
  50 
  51     private static JFrame frame;
  52 
  53     private static volatile int mouseEnterCount = 0;
  54 
  55     private static volatile boolean windowEnteringFullScreen = false;
  56     private static volatile boolean windowEnteredFullScreen = false;
  57 
  58     public static void main(String[] args) throws Exception {
  59 
  60         if (!OS.contains("mac")) {
  61             System.out.println("The test is applicable only to Mac OS X. Passed");


< prev index next >