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

PreferredSize is not recomputed for JComboBox when new font is set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: