private void update() {
    myTargetUrl = buildTargetUrl();

    myTargetURLLabel.setText(myTargetUrl != null ? myTargetUrl.toDecodedString() : "");
    getOKAction().setEnabled(myTargetUrl != null && !myURL.equals(myTargetUrl));
  }
private void update()