From commits-return-8804-archive-asf-public=cust-asf.ponee.io@groovy.apache.org Sat Jun 1 13:11:26 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id AEE6C18072F for ; Sat, 1 Jun 2019 15:11:25 +0200 (CEST) Received: (qmail 52597 invoked by uid 500); 1 Jun 2019 13:11:25 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 52558 invoked by uid 99); 1 Jun 2019 13:11:25 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Jun 2019 13:11:25 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id DC3658A593; Sat, 1 Jun 2019 13:11:24 +0000 (UTC) Date: Sat, 01 Jun 2019 13:11:25 +0000 To: "commits@groovy.apache.org" Subject: [groovy] 01/03: GROOVY-9156: The metaDataMap table of values should scale with the outer frame MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: paulk@apache.org In-Reply-To: <155939468471.7900.6614559155337689121@gitbox.apache.org> References: <155939468471.7900.6614559155337689121@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: groovy X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: 1a562d2804305168613b3f06a356bdf73267ba84 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20190601131124.DC3658A593@gitbox.apache.org> 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 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: [[:]]) {