use of org.jwildfire.swing.ErrorHandler in project JWildfire by thargor6.
the class EnvelopePropertyEditor method selectEnvelope.
protected void selectEnvelope() {
Envelope editEnvelope = envelope.clone();
EnvelopeDialog dlg = new EnvelopeDialog(SwingUtilities.getWindowAncestor(editor), new ErrorHandler() {
@Override
public void handleError(Throwable pThrowable) {
pThrowable.printStackTrace();
}
}, editEnvelope, false);
dlg.setModal(true);
dlg.setVisible(true);
if (dlg.isConfirmed()) {
Envelope oldEnvelope = envelope;
label.setValue(editEnvelope);
envelope = editEnvelope;
firePropertyChange(oldEnvelope, editEnvelope);
}
}
Aggregations