Skip to content

Commit 03298f5

Browse files
authored
Merge pull request #598 from digital-preservation/DR2-2458_lineWrapTheOutput
Line wrap the output
2 parents c211965 + 194e157 commit 03298f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csv-validator-ui/src/main/scala/uk/gov/nationalarchives/csv/validator/ui/CsvValidatorUi.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ object CsvValidatorUi extends SimpleSwingApplication {
262262
}
263263

264264
private val txtArReport = new TextArea()
265+
txtArReport.lineWrap = true
265266

266267
/**
267268
* The main UI of the application
@@ -366,7 +367,7 @@ object CsvValidatorUi extends SimpleSwingApplication {
366367

367368
private val scrollPane = new ScrollPane
368369
txtArReport.peer.setTransferHandler(fileHandler)
369-
scrollPane.preferredSize = new Dimension(300, 70)
370+
scrollPane.preferredSize = new Dimension(300, 70) // for some reason, line wrap only works if this is here so this will have to stay
370371
scrollPane.viewportView = txtArReport
371372

372373
private val btnValidate = new Button("Validate")

0 commit comments

Comments
 (0)