question: public boolean saveCurrentConfiguration ( ) { if ( currentConfig . toString ( ) == null ) { return ( true ) ; } int answer = JOptionPane . showConfirmDialog ( null , "Save current configuration?" , "Save Configuration" , JOptionPane . YES_NO_CANCEL_OPTION , JOptionPane . QUESTION_MESSAGE , Icons . getImageIcon ( "dert_24.png" ) ) ; if ( answer == JOptionPane . CANCEL_OPTION ) { return ( false ) ; } else if ( answer == JOptionPane . NO_OPTION ) { return ( true ) ; } return ( saveCurrentConfigurationAs ( false ) ) ; }
target:  Save the current configuration