Search in sources :

Example 1 with ErrorHandler

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);
    }
}
Also used : ErrorHandler(org.jwildfire.swing.ErrorHandler) Envelope(org.jwildfire.envelope.Envelope)

Aggregations

Envelope (org.jwildfire.envelope.Envelope)1 ErrorHandler (org.jwildfire.swing.ErrorHandler)1