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);
}

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 ) ; }
shows a warning message .
