do not display fractions in percentage
This commit is contained in:
@ -49,7 +49,7 @@ class BrowseView {
|
||||
panel (constraints : BorderLayout.NORTH) {
|
||||
label(text: "Status:")
|
||||
label(text: bind {model.status.toString()})
|
||||
label(text : bind {model.totalResults == 0 ? "" : (model.resultCount * 100 / model.totalResults)+ "%"})
|
||||
label(text : bind {model.totalResults == 0 ? "" : Math.round(model.resultCount * 100 / model.totalResults)+ "%"})
|
||||
}
|
||||
scrollPane (constraints : BorderLayout.CENTER){
|
||||
resultsTable = table(autoCreateRowSorter : true) {
|
||||
|
Reference in New Issue
Block a user