-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
beta
-
x86
-
windows_nt
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2120216 | 6 | Scott Violet | P3 | Resolved | Fixed | beta |
Bug 4864304 made various performance enhancements to Swing. One of the things it did was to allow null for the horizontal scroll bar of a JScrollPane. It then changed BasicComboPopup to set the horizontal scrollbar of the scrollpane to null.
After this fix, when using a JComboBox to switch the look and feel from Metal, a NullPointerException is thrown from MetalScrollPaneUI.uninstallUI (which doesn't check for null). A test case is attached (JSliderTest.java). Run it, and switch to another L&F.
Note: I have another test case which does something similar (ListTest.java), but it isn't affected. I don't know why - could this be timing related?
After this fix, when using a JComboBox to switch the look and feel from Metal, a NullPointerException is thrown from MetalScrollPaneUI.uninstallUI (which doesn't check for null). A test case is attached (JSliderTest.java). Run it, and switch to another L&F.
Note: I have another test case which does something similar (ListTest.java), but it isn't affected. I don't know why - could this be timing related?
- backported by
-
JDK-2120216 1.5.0 Regression: NPE when switching from Metal L&F with JComboBox
- Resolved
- relates to
-
JDK-4864304 Improve memory consumption of Swing apps
- Resolved