Duplicate :
|
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.
|