JDK-6379178 : BasicComboBoxUI.ListDataHandler.contentsChanged doesn't mark displaySize as dirty
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.
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.
Suggested fix from peabody seems good. I accepted it.