JDK-6481846 : REGRESSION:the size of popup menu was not correted with the new model when ComboBoxModel is changed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-10-13
  • Updated: 2011-01-19
  • Resolved: 2006-10-26
Related Reports
Duplicate :  
Relates :  
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.

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