Java Code Examples for javax.swing.plaf.basic.BasicPopupMenuUI

The following examples show how to use javax.swing.plaf.basic.BasicPopupMenuUI. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: dragonwell8_jdk   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 2
Source Project: TencentKona-8   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 3
Source Project: jdk8u60   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 4
Source Project: openjdk-jdk8u   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 5
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 6
Source Project: openjdk-jdk9   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 7
Source Project: jdk8u-jdk   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 8
Source Project: hottub   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 9
Source Project: openjdk-8-source   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 10
Source Project: openjdk-8   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 11
Source Project: jdk8u_jdk   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 12
Source Project: jdk8u-jdk   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}
 
Example 13
Source Project: jdk8u-dev-jdk   Source File: bug6495920.java    License: GNU General Public License v2.0 6 votes vote down vote up
public void thirdValidate() throws Exception {
    Field key = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY");
    key.setAccessible(true);

    Object grabber = AppContext.getAppContext().get(key.get(null));
    if (grabber == null) {
        throw new Exception("cannot find a mouse grabber in app's context");
    }

    Field field = grabber.getClass().getDeclaredField("grabbedWindow");
    field.setAccessible(true);

    Object window = field.get(grabber);
    if (window != null) {
        throw new Exception("interaction with GNOME is crippled");
    }
}