-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException in WebPopupMenuUI #91
Comments
I am seeing this exception now also when I'm not using internal frames. So probably it has nothing to do with mouse event dispatch, but is a general NPE problem:
|
Looking at the line in question (WebPopupMenuUI.java:184), the NPE must be introduced by This seems to happen if you subclass
|
Perhaps relevant, there seems to be change regarding "HeavyWeightWindow" in Java 7: http://marathontesting.com/marathon-and-marathonite-3-2-9-2-release/ --- I am using OpenJDK 7 now because on Linux OpenJDK 6 is pretty much broken for Swing. I will submit a pull request with additional guards against |
…ange options #105 - WebButton decoration is now handled a bit differently when it is inside WebButtonGroup #72 #79 #104 - Fixed window transparency update method for later versions of JDK 7 #96 - WebButtonGroup "add" methods fix and proper style updates for various cases #95 - WebScrollPane method to hide scroll bar buttons added #93 - WebPopupPainter bottom side corner fix #91 - Small code refactoring #90 - WebInternalFrame buttons made non-focusable #55 - "OptionPane.isYesLast" is now set to true for Mac OS X StyleManager initialization is not required anymore for Web-styled components creation StyleManager now supports custom component painters StyleManager now has a better support for custom settings StyleManager skin file parsing improvements 9-patch-based painters added for JLabel and JPanel components JLabel painter support added WebVerticalLabel painter support added WebBreadcrumbLabel painter support added WebBreadcrumbPanel painter support added WebAsyncTree root sorting/filtering do not cause an exception anymore NinePatchEditor image rotation features added WebButtonUI margin fix for hidden sides case NinePatchIcon cache initialization fix Improved text representation for UniqueNode WebListUI rollover cell highlight fix Default SettingsProcessors small bugfixes Demo application heavy animation switch fix Version files updated
I am seeing the following exception with WebLAF and internal frames:
This happens when creating an internal frame which is hidden (not opened), and successively using the mouse. My interpretation is that although the new frame is not opened, the LAF somehow dispatches mouse events to that new frame, which in this case tries to open a popup menu and then causes the exception.
So this appears to be complementary to the other bug I reported, where keyboard focus stays with the old internal frame when opening a new one. Here, mouse focus is transferred to a new frame even if it is not opened.
The text was updated successfully, but these errors were encountered: