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

JSpinner may change the font after became visible

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10, 11
    • Fix Version/s: 11
    • Component/s: client-libs
    • Subcomponent:
    • Resolved In Build:
      b20
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        JSpinner may have a text editor inside. The preferred size of JSPinner depends from this editor, which also depends from the font. Look like a have a bug when we calculate the size of the JSPinner using default font of editor and only after that we change the font of the editor to the font of spinner.
        To reproduce this bug run this test:
        http://cr.openjdk.java.net/~serb/8201552/webrev.01/test/jdk/javax/swing/GraphicsConfigNotifier/StalePreferredSize.java.html

        See this line;
        //TODO () -> new JSpinner(new SpinnerListModel(new String[]{HTML})),

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  serb Sergey Bylokhov
                  Reporter:
                  serb Sergey Bylokhov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: