JDK-5007717 : PreferredSize is not recomputed for JComboBox when new font is set
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-03-04
  • Updated: 2004-03-09
  • Resolved: 2004-03-09
Related Reports
Duplicate :  
Description
PreferredSize is not recomputed when a new font is set for JComboBox.
This works fine for other components. This was working fine in 1.3.1
The preferred size is recomputed only when data-model is changed - adding or removing of items.

Compile and run JComboBoxTest.java
Click on buttons "Set Font ++" and "Set Font --" to set different fonts. The JButton computes preferred size properly. But JComboBox computes preferred size only when an item is added or removed.

Comments
EVALUATION Duplicate of 5006246. ###@###.### 2004-03-09
09-03-2004