public SampleFileToXsdUi(FileType fileType) {
localFileChoice = new KongaRadioButton("Use a &local " + fileType + " file", true);
fileSelector = createFileSelector(fileType);
remoteFileChoice = new KongaRadioButton("&URL to a remote " + fileType + " file", true);
urlField = new KongaTextField(40);
urlField.setSelectAllWhenFocused(true);
xsdFileNameField = new FileNameField("XSD File Name", "(Optional) XSD file &name:", 40);
xsdFileNameField.setRequired(false);
xsdFileNameField.setTextWhenEmpty("A file name will be generated automatically if empty");
ButtonUtils.makeMutuallyExclusive(localFileChoice, remoteFileChoice);