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.

To download the current JDK release, click here.
JDK 6
6 b76Fixed
Description
Wrom: XFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNN
Both intervalAdded and intervalRemoved mark the displaySize as dirty, but not contentsChanged. It should.

Comments
SUGGESTED FIX webrev: http://sa.sfbay.sun.com/projects/swing_data/mustang/6379178/
06-03-2006

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.
28-02-2006

EVALUATION Contribution-Forum:https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?messageID=11402&forumID=1463
13-02-2006