@Override public void deactivate() { super.deactivate(); model.getTxId().removeListener(txIdChangeListener); txIdTextField.cleanup(); if (root != null) root.setMouseTransparent(false); }
private void onPaymentReceived(ActionEvent actionEvent) { log.debug("onPaymentReceived"); confirmFiatReceivedButton.setDisable(true); statusLabel.setText("Sending message to trading peer..."); statusProgressIndicator.setVisible(true); statusProgressIndicator.setProgress(-1); root = statusProgressIndicator.getScene().getRoot(); // We deactivate mouse interaction to avoid that user leaves screen root.setMouseTransparent(true); model.fiatPaymentReceived(); }