List of usage examples for javax.swing JFileChooser setDialogTitle
@BeanProperty(preferred = true, description = "The title of the JFileChooser dialog window.") public void setDialogTitle(String dialogTitle)
JFileChooser
window's title bar. From source file:wqm.util.ProcessDataGUI.java
public static void main(String[] args) throws IOException, ParseException { JFileChooser fc = new JFileChooser(); fc.setDialogTitle("Select data file."); fc.setFileSelectionMode(JFileChooser.FILES_ONLY); fc.setMultiSelectionEnabled(true);//from ww w . j av a 2 s .c om int returnVal = fc.showOpenDialog(null); if (returnVal == JFileChooser.APPROVE_OPTION) { File[] files = fc.getSelectedFiles(); fc.setDialogTitle("Select output location."); fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); fc.setMultiSelectionEnabled(false); returnVal = fc.showOpenDialog(null); if (returnVal == JFileChooser.APPROVE_OPTION) { File outputDirectory = fc.getSelectedFile(); for (File inputFile : files) { ProcessData .main(new String[] { inputFile.getAbsolutePath(), outputDirectory.getAbsolutePath() }); } } } }