United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6481846 : REGRESSION:the size of popup menu was not correted with the new model when ComboBoxModel is changed

Details
Type:
Bug
Submit Date:
2006-10-13
Status:
Closed
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2006-10-26
Component:
client-libs
OS:
windows_xp
Sub-Component:
javax.swing
CPU:
x86
Priority:
P3
Resolution:
Duplicate
Affected Versions:
6
Fixed Versions:

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
There seems a small regression with JDK 1.6 with build 100.
 
If the ComboBoxModel is changed in the method
popupMenuWillBecomeVisible(PopupMenuEvent) then the size of the popup menu
will not corrected with the new model. The size of the popup menu is equals
the previous ComboBoxModel. With Java 5 the popup size is correct. Attached
attached a simple test case TestComboBox.java.

                                    

Comments
EVALUATION

There are two things to be mentioned here:

One is that we don't support resizing Combobox's Popup from PopupMenuListener
see 4743225

The reason why behaviour is different between 1.5 and 1.6 is the fix for 5029504
we used to have popup 100 pixels height for the empty ComboBox
now we use comboBox.getHeight() + insets for empty ones
                                     
2006-10-19



Hardware and Software, Engineered to Work Together