Refactored JFXErrorDialog