Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5007717

PreferredSize is not recomputed for JComboBox when new font is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs

      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.

            shickeysunw Shannon Hickey (Inactive)
            rmenonsunw Rakesh Menon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: