-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
generic
-
generic
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.
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.
- duplicates
-
JDK-5006246 JCombobox doesn't get resized according to font size change
-
- Open
-