You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default JPanel from the javax.swing package won't render with its applied style, if it is displayed in a JOptionPane / JDialog (magenta / red panel).
If using an anonymous or named sub class of JPanel, the panel will be rendered without any issues (green / blue panel).
In a JFrame all panels are rendered as expected (top window):
It does not matter, how styling is applied, e.g. setting background via JPanel.setBackground(Color) will also not render the correct background color.
Tested with FlatLaf 3.2.5, Adoptium JDK 21 on Windows 10.
The default JPanel from the javax.swing package won't render with its applied style, if it is displayed in a JOptionPane / JDialog (magenta / red panel).
If using an anonymous or named sub class of JPanel, the panel will be rendered without any issues (green / blue panel).
In a JFrame all panels are rendered as expected (top window):
It does not matter, how styling is applied, e.g. setting background via JPanel.setBackground(Color) will also not render the correct background color.
Tested with FlatLaf 3.2.5, Adoptium JDK 21 on Windows 10.
Test code:
and
The text was updated successfully, but these errors were encountered: