JDK-8355629 : PassFailJFrame instructions are incorrectly sized in Windows L&F
  • Type: Bug
  • Component: client-libs
  • Affected Version: 19
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • OS: windows
  • Submitted: 2025-04-25
  • Updated: 2025-04-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
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.