private void checkRunButton ( ) { runButton . setEnabled ( ( pcRadio . isSelected ( ) || ( customFileRadio . isSelected ( ) && ! modelField . getText ( ) . trim ( ) . isEmpty ( ) ) || ( customURLRadio . isSelected ( ) && ! urlField . getText ( ) . trim ( ) . isEmpty ( ) ) ) && ! outputField . getText ( ) . trim ( ) . isEmpty ( ) ) ; }
Checks if the run button should be enabled .