/** * Constructs a new TranslatorComponent with the given filters of the source and destination * files. */ public TranslatorComponent(FileFilter sourceFilter, FileFilter destFilter) { this.sourceFilter = sourceFilter; this.destFilter = destFilter; init(); jbInit(); source.setName("Source"); destination.setName("Destination"); sourceFileChooser = new JFileChooser(); sourceFileChooser.setFileFilter(sourceFilter); destFileChooser = new JFileChooser(); destFileChooser.setFileFilter(destFilter); source.enableUserInput(); destination.disableUserInput(); }
public void disableSourceRowSelection() { source.disableUserInput(); }