4632N/Aclass ScreenMenu extends Menu implements ContainerListener, ComponentListener, ScreenMenuPropertyHandler {
4632N/A java.security.AccessController.doPrivileged((PrivilegedAction<?>)new sun.security.action.LoadLibraryAction("awt"));
4632N/A return new ScreenMenuComponent();
4632N/A * Determine if we need to tear down the Menu and re-create it, since the contents may have changed in the Menu opened listener and
4632N/A * we do not get notified of it, because EDT is busy in our code. We only need to update if the menu contents have changed in some
4632N/A e.printStackTrace();
4632N/A e.printStackTrace();
4632N/A public void handleItemTargeted(final int inWhichItem, final int itemRectTop, final int itemRectLeft, final int itemRectBottom, final int itemRectRight) {
4632N/A if (fItemBounds == null || inWhichItem < 0 || inWhichItem > (fItemBounds.length - 1)) return;
4632N/A final Rectangle itemRect = new Rectangle(itemRectLeft, itemRectTop, itemRectRight - itemRectLeft, itemRectBottom - itemRectTop);
4632N/A public void handleMouseEvent(final int kind, final int x, final int y, final int modifiers, final long when) {
4632N/A LWToolkit.postEvent(new MouseEvent(fLastMouseEventTarget, MouseEvent.MOUSE_EXITED, when, modifiers, x - fLastTargetRect.x, y - fLastTargetRect.y, 0, false));
4632N/A LWToolkit.postEvent(new MouseEvent(target, MouseEvent.MOUSE_ENTERED, when, modifiers, x - targetRect.x, y - targetRect.y, 0, false));
4632N/A LWToolkit.postEvent(new MouseEvent(target, kind, when, modifiers, x - targetRect.x, y - targetRect.y, 0, false));
4632N/A // Call super so that the NSMenu has been removed, before we release the delegate in removeMenuListeners
4632N/A super.removeNotify();
4632N/A setVisible(true);
4632N/A setVisible(false);
4632N/A } else if (m instanceof JSeparator) {
4632N/A } else if (m instanceof JCheckBoxMenuItem) {
4632N/A } else if (m instanceof JRadioButtonMenuItem) {