Source:
public void initialize() { advancedOptions.managedProperty().bind(advancedOptions.visibleProperty()); unlockButton.disableProperty().bind(passwordField.textProperty().isEmpty()); mountName.addEventFilter(KeyEvent.KEY_TYPED, this::filterAlphanumericKeyEvents); mountName.textProperty().addListener(this::mountNameDidChange); savePassword.setDisable(!keychainAccess.isPresent()); unlockAfterStartup.disableProperty().bind(savePassword.disabledProperty().or(savePassword.selectedProperty().not())); customMountPathLabel.visibleProperty().bind(useCustomMountPath.selectedProperty()); customMountPathLabel.managedProperty().bind(useCustomMountPath.selectedProperty()); customMountPathField.visibleProperty().bind(useCustomMountPath.selectedProperty()); customMountPathField.managedProperty().bind(useCustomMountPath.selectedProperty()); customMountPathField.textProperty().addListener(this::mountPathDidChange); if (VolumeImpl.WEBDAV.equals(settings.preferredVolumeImpl().get())) { useCustomMountPath.setVisible(false); useCustomMountPath.setManaged(false); customMountPathField.setMouseTransparent(true); } else { useCustomMountPath.setVisible(true); if (SystemUtils.IS_OS_WINDOWS) { winDriveLetter.setConverter(new WinDriveLetterLabelConverter()); winDriveLetter.visibleProperty().bind(useCustomMountPath.selectedProperty().not()); winDriveLetter.managedProperty().bind(useCustomMountPath.selectedProperty().not()); winDriveLetterLabel.visibleProperty().bind(useCustomMountPath.selectedProperty().not()); winDriveLetterLabel.managedProperty().bind(useCustomMountPath.selectedProperty().not()); } else { winDriveLetterLabel.setVisible(false); winDriveLetterLabel.setManaged(false); winDriveLetter.setVisible(false); winDriveLetter.setManaged(false); } } }

Target:
public void initialize() { advancedOptions.managedProperty().bind(advancedOptions.visibleProperty()); unlockButton.disableProperty().bind(passwordField.textProperty().isEmpty()); mountName.addEventFilter(KeyEvent.KEY_TYPED, this::filterAlphanumericKeyEvents); mountName.textProperty().addListener(this::mountNameDidChange); savePassword.setDisable(!keychainAccess.isPresent()); unlockAfterStartup.disableProperty().bind(savePassword.disabledProperty().or(savePassword.selectedProperty().not())); customMountPathLabel.visibleProperty().bind(useCustomMountPath.selectedProperty()); customMountPathLabel.managedProperty().bind(useCustomMountPath.selectedProperty()); customMountPathField.visibleProperty().bind(useCustomMountPath.selectedProperty()); customMountPathField.managedProperty().bind(useCustomMountPath.selectedProperty()); customMountPathField.textProperty().addListener(this::mountPathDidChange); winDriveLetter.setConverter(new WinDriveLetterLabelConverter()); if (!SystemUtils.IS_OS_WINDOWS) { winDriveLetterLabel.setVisible(false); winDriveLetterLabel.setManaged(false); winDriveLetter.setVisible(false); winDriveLetter.setManaged(false); } if (VolumeImpl.WEBDAV.equals(settings.preferredVolumeImpl().get())) { useCustomMountPath.setVisible(false); useCustomMountPath.setManaged(false); customMountPathField.setMouseTransparent(true); } else { useCustomMountPath.setVisible(true); if (SystemUtils.IS_OS_WINDOWS) { winDriveLetter.visibleProperty().bind(useCustomMountPath.selectedProperty().not()); winDriveLetter.managedProperty().bind(useCustomMountPath.selectedProperty().not()); winDriveLetterLabel.visibleProperty().bind(useCustomMountPath.selectedProperty().not()); winDriveLetterLabel.managedProperty().bind(useCustomMountPath.selectedProperty().not()); } } }