< 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  * @modules java.desktop/com.apple.eawt
  43  * @author Petr Pchelko area=awt.event
  44  * @run main FullscreenEnterEventTest
  45  */
  46 public class FullscreenEnterEventTest {
  47 
  48     private static String OS = System.getProperty("os.name").toLowerCase();
  49 
  50     private static JFrame frame;
  51 
  52     private static volatile int mouseEnterCount = 0;
  53 
  54     private static volatile boolean windowEnteringFullScreen = false;
  55     private static volatile boolean windowEnteredFullScreen = false;
  56 
  57     public static void main(String[] args) throws Exception {
  58 
  59         if (!OS.contains("mac")) {




  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  * @modules java.desktop/com.apple.eawt
  45  * @author Petr Pchelko area=awt.event
  46  * @run main FullscreenEnterEventTest
  47  */
  48 public class FullscreenEnterEventTest {
  49 
  50     private static String OS = System.getProperty("os.name").toLowerCase();
  51 
  52     private static JFrame frame;
  53 
  54     private static volatile int mouseEnterCount = 0;
  55 
  56     private static volatile boolean windowEnteringFullScreen = false;
  57     private static volatile boolean windowEnteredFullScreen = false;
  58 
  59     public static void main(String[] args) throws Exception {
  60 
  61         if (!OS.contains("mac")) {


< prev index next >