|
|
@ -107,8 +107,8 @@ public class DarkPopupMenuUI extends BasicPopupMenuUI { |
|
|
|
Field field = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY"); |
|
|
|
Field field = BasicPopupMenuUI.class.getDeclaredField("MOUSE_GRABBER_KEY"); |
|
|
|
field.setAccessible(true); |
|
|
|
field.setAccessible(true); |
|
|
|
Object value = field.get(null); |
|
|
|
Object value = field.get(null); |
|
|
|
MouseGrabber mouseGrabber = (MouseGrabber) context.get(value); |
|
|
|
Object mouseGrabber = context.get(value); |
|
|
|
if (mouseGrabber != null) { |
|
|
|
if (mouseGrabber instanceof MouseGrabber) { |
|
|
|
Method method = mouseGrabber.getClass().getDeclaredMethod("uninstall"); |
|
|
|
Method method = mouseGrabber.getClass().getDeclaredMethod("uninstall"); |
|
|
|
method.setAccessible(true); |
|
|
|
method.setAccessible(true); |
|
|
|
method.invoke(mouseGrabber); |
|
|
|
method.invoke(mouseGrabber); |
|
|
|