Closed TheCardinalSystem closed 1 month ago
You can show icon for single (JOptionPane) dialog with:
dialog.getRootPane().putClientProperty( FlatClientProperties.TITLE_BAR_SHOW_ICON, true );
Or show icon for all JOptionPanes with:
UIManager.put( "OptionPane.showIcon", true );
I want to display a custom window icon on some of my option panes, so I created a custom method which takes an Image parameter and shows a JOptionPane:
This works when using a built-in LAF, but when I switch to FlatLaf the icon vanishes. I discovered the
TitlePane.icon
key from this issue, but this affects all option panes. I only want to set icons on specific option panes, and these icons will differ depending on the information displayed.Can FlatLaf be modified to acknowledge icons set with
setIconImages
?