From f569d45c8c8fcee3378013d40077a16249baaa25 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Fri, 5 Jul 2019 17:07:14 +0100 Subject: [PATCH] reallign tables --- .../views/com/muwire/gui/MainFrameView.groovy | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy b/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy index fc88353d..ce068fdc 100644 --- a/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy +++ b/gui/griffon-app/views/com/muwire/gui/MainFrameView.groovy @@ -173,7 +173,7 @@ class MainFrameView { } panel (border : etchedBorder(), constraints : BorderLayout.CENTER) { gridLayout(cols : 2, rows : 1) - panel (constraints : BorderLayout.WEST) { + panel { borderLayout() scrollPane (constraints : BorderLayout.CENTER) { 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 (constraints : BorderLayout.EAST){ + panel { borderLayout() scrollPane(constraints : BorderLayout.CENTER) { table(id : "shared-files-table", autoCreateRowSorter: true) { @@ -197,13 +193,17 @@ class MainFrameView { } } } - panel (constraints : BorderLayout.SOUTH) { - borderLayout() - panel (constraints : BorderLayout.EAST) { - label("Shared:") - label(text : bind {model.loadedFiles.toString()}) - } - } + } + } + panel (constraints : BorderLayout.SOUTH) { + borderLayout() + panel (constraints : BorderLayout.EAST) { + label("Shared:") + label(text : bind {model.loadedFiles.toString()}) + } + panel (constraints : BorderLayout.WEST) { + button(text : "Add directories to watch", actionPerformed : watchDirectories) + button(text : "Share files", actionPerformed : shareFiles) } } }