reallign tables

This commit is contained in:
Zlatin Balevsky
2019-07-05 17:07:14 +01:00
parent 3773647869
commit f569d45c8c

View File

@@ -173,7 +173,7 @@ class MainFrameView {
} }
panel (border : etchedBorder(), constraints : BorderLayout.CENTER) { panel (border : etchedBorder(), constraints : BorderLayout.CENTER) {
gridLayout(cols : 2, rows : 1) gridLayout(cols : 2, rows : 1)
panel (constraints : BorderLayout.WEST) { panel {
borderLayout() borderLayout()
scrollPane (constraints : BorderLayout.CENTER) { scrollPane (constraints : BorderLayout.CENTER) {
table(id : "watched-directories-table", autoCreateRowSorter: true) { table(id : "watched-directories-table", autoCreateRowSorter: true) {
@@ -182,12 +182,8 @@ class MainFrameView {
} }
} }
} }
panel (constraints : BorderLayout.SOUTH) {
button(text : "Add directories to watch", actionPerformed : watchDirectories)
button(text : "Share files", actionPerformed : shareFiles)
} }
} panel {
panel (constraints : BorderLayout.EAST){
borderLayout() borderLayout()
scrollPane(constraints : BorderLayout.CENTER) { scrollPane(constraints : BorderLayout.CENTER) {
table(id : "shared-files-table", autoCreateRowSorter: true) { table(id : "shared-files-table", autoCreateRowSorter: true) {
@@ -197,13 +193,17 @@ class MainFrameView {
} }
} }
} }
}
}
panel (constraints : BorderLayout.SOUTH) { panel (constraints : BorderLayout.SOUTH) {
borderLayout() borderLayout()
panel (constraints : BorderLayout.EAST) { panel (constraints : BorderLayout.EAST) {
label("Shared:") label("Shared:")
label(text : bind {model.loadedFiles.toString()}) label(text : bind {model.loadedFiles.toString()})
} }
} panel (constraints : BorderLayout.WEST) {
button(text : "Add directories to watch", actionPerformed : watchDirectories)
button(text : "Share files", actionPerformed : shareFiles)
} }
} }
} }