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

PassFailJFrame instructions are incorrectly sized in Windows L&F

XMLWordPrintable

    • windows

      If the current Look and Feel is set to Windows, `JTextArea` that hosts the instructions uses a monospaced font ("Courier New"), yet the preferred size of the text component isn't updated after the font is changed.

      This should be addressed somehow, otherwise sizing the instructions for Windows L&F needs additional adjustments, and the size of the frame becomes too wide in other L&Fs.

      One the workarounds could be to force the font of `JTextField` to avoid monospaced font.

      Yet JDK-8328164 proposes to add an option to use monospaced font in other L&Fs, so a generic solution is required.

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: