JDK-6379178 : BasicComboBoxUI.ListDataHandler.contentsChanged doesn't mark displaySize as dirty
Type:Bug
Component:client-libs
Sub-Component:javax.swing
Affected Version:6
Priority:P4
Status:Resolved
Resolution:Fixed
OS:generic,windows_xp
CPU:generic,x86
Submitted:2006-01-31
Updated:2011-01-19
Resolved:2006-03-16
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Wrom: XFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNN
Both intervalAdded and intervalRemoved mark the displaySize as dirty, but not contentsChanged. It should.
EVALUATION
The problem was in the implementation of ListDataListener interface in BasicComboBoxUI.Handler private inner class.
JComboBox cached size was marked as dirty only in intervalAdded() and intervalRemoved() methods, but not in contentsChanged().
Now JComboBox size is marked as dirty in all three methods.
02-03-2006
EVALUATION
Suggested fix from peabody seems good. I accepted it.