groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 01/03: GROOVY-9156: The metaDataMap table of values should scale with the outer frame
Date Sat, 01 Jun 2019 13:11:25 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 1a562d2804305168613b3f06a356bdf73267ba84
Author: Paul King <paulk@asert.com.au>
AuthorDate: Sat Jun 1 16:21:24 2019 +1000

    GROOVY-9156: The metaDataMap table of values should scale with the outer frame
---
 .../src/main/groovy/groovy/console/ui/AstBrowser.groovy            | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/AstBrowser.groovy
b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/AstBrowser.groovy
index dc97c67..e2ac575 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/console/ui/AstBrowser.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/console/ui/AstBrowser.groovy
@@ -43,6 +43,7 @@ import javax.swing.tree.DefaultMutableTreeNode
 import javax.swing.tree.DefaultTreeModel
 import javax.swing.tree.TreeNode
 import javax.swing.tree.TreeSelectionModel
+import java.awt.BorderLayout
 import java.awt.Cursor
 import java.awt.Font
 import java.awt.event.KeyEvent
@@ -245,8 +246,10 @@ class AstBrowser {
                                     String title = titleSuffix ? propList[0] + " (" + titleSuffix
+ ")" : propList[0]
                                     def props = swing.frame(title: title, defaultCloseOperation:
JFrame.DISPOSE_ON_CLOSE,
                                             show: true, locationRelativeTo: null) {
-                                        lookAndFeel("system")
-                                        panel {
+                                        lookAndFeel 'system'
+                                        borderLayout(vgap: 5)
+                                        panel(constraints: BorderLayout.CENTER) {
+                                            borderLayout()
                                             scrollPane {
                                                 mapTable = swing.table {
                                                     tableModel(list: [[:]]) {


Mime
View raw message