public void onWarningEmitted(String s) { if (_vp.isErrorsOn()) JOptionPane.showMessageDialog(_vp, s, "VARNA Warning", JOptionPane.ERROR_MESSAGE); }
/** * Open an error message dialog with the exception message * * @param e1 The <code>Exception</code> */ public void errorDialog(Exception e1) { if (_vp.isErrorsOn()) JOptionPane.showMessageDialog(_vp, e1.getMessage(), "VARNA Error", JOptionPane.ERROR_MESSAGE); }