question: public static void showWarning ( final Component parent , final String msg ) { JOptionPane . showMessageDialog ( isIconified ( parent ) ? null : parent , msg , System . getProperty ( DEFAULT_WINDOW_TITLE_PROPERTY ) , JOptionPane . WARNING_MESSAGE ) ; }
target:  Shows a warning message.