Skip to content

Commit eae52f8

Browse files
committed
Line wrap the output
1 parent 6c69662 commit eae52f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
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,6 +367,7 @@ object CsvValidatorUi extends SimpleSwingApplication {
366367

367368
private val scrollPane = new ScrollPane
368369
txtArReport.peer.setTransferHandler(fileHandler)
370+
scrollPane.preferredSize = new Dimension(300, 70) // for some reason, line wap only works if this is here
369371
scrollPane.viewportView = txtArReport
370372

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

0 commit comments

Comments
 (0)