@@ -292,6 +292,7 @@ object CsvValidatorUi extends SimpleSwingApplication {
292292 case None =>
293293 userDir.toFile
294294 })
295+ csvFileChooser.title = " Select a .csv file"
295296 csvFileChooser.fileFilter = new FileNameExtensionFilter (" CSV file (*.csv)" , " csv" )
296297 private val btnChooseCsvFile = new Button (" ..." )
297298
@@ -317,6 +318,7 @@ object CsvValidatorUi extends SimpleSwingApplication {
317318 case None =>
318319 userDir.toFile
319320 })
321+ csvSchemaFileChooser.title = " Select a .csvs file"
320322 csvSchemaFileChooser.fileFilter = new FileNameExtensionFilter (" CSV Schema file (*.csvs)" , " csvs" +
321323 " " )
322324
@@ -426,6 +428,7 @@ object CsvValidatorUi extends SimpleSwingApplication {
426428 reportFileChooser.selectedFile = new File (s " csv_validator_report_ ${dateFormat.format(new Date ())}.txt " )
427429
428430 val saveLabel = " Save Results"
431+ reportFileChooser.title = saveLabel
429432 private val btnSave = new Button (saveLabel)
430433 btnSave.reactions += onClick {
431434 saveFile(reportFileChooser, saveToFile(txtArReport.text, _), btnSave, btnSave.text)
@@ -528,9 +531,11 @@ object CsvValidatorUi extends SimpleSwingApplication {
528531 fileButton.reactions += {
529532 case ev : ButtonClicked =>
530533 val startingDir = if (fileTextField.text.isEmpty) userDir.toFile else Path .of(fileTextField.text).toFile
534+ val helpText = s " Select the ${fromPath.split(" /" ).last} folder "
531535 val fileChooser = new FileChooser (startingDir)
536+ fileChooser.title = helpText
532537 fileChooser.fileSelectionMode = SelectionMode .FilesAndDirectories
533- chooseFile(fileChooser, f => updateFileText(f), fileButton, s " Select the ${fromPath.split( " / " ).last} folder " )
538+ chooseFile(fileChooser, f => updateFileText(f), fileButton, helpText )
534539 }
535540
536541 val rows = List (
0 commit comments