United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6379178 : BasicComboBoxUI.ListDataHandler.contentsChanged doesn't mark displaySize as dirty

Details
Type:
Bug
Submit Date:
2006-01-31
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2006-03-16
Component:
client-libs
OS:
generic,windows_xp
Sub-Component:
javax.swing
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
Wrom: XFGGMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNN
Both intervalAdded and intervalRemoved mark the displaySize as dirty, but not contentsChanged. It should.

                                    

Comments
EVALUATION

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

Suggested fix from peabody seems good. I accepted it.
                                     
2006-02-28
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.
                                     
2006-03-02
SUGGESTED FIX

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



Hardware and Software, Engineered to Work Together