This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch GROOVY_3_0_X in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_3_0_X by this push: new c1d53a8 fix SwingBuilder image to match code c1d53a8 is described below commit c1d53a8cd574200d3d2fb45580103e659e00d21c Author: Paul King <pa...@asert.com.au> AuthorDate: Tue Aug 25 20:58:27 2020 +1000 fix SwingBuilder image to match code --- .../src/spec/doc/assets/img/SwingBuilder001.gif | Bin 1643 -> 0 bytes .../src/spec/doc/assets/img/SwingBuilder001.png | Bin 0 -> 5182 bytes subprojects/groovy-swing/src/spec/doc/swing-builder.adoc | 2 +- .../groovy-swing/src/spec/test/SwingBuilderTest.groovy | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/groovy-swing/src/spec/doc/assets/img/SwingBuilder001.gif b/subprojects/groovy-swing/src/spec/doc/assets/img/SwingBuilder001.gif deleted file mode 100644 index 393316d..0000000 Binary files a/subprojects/groovy-swing/src/spec/doc/assets/img/SwingBuilder001.gif and /dev/null differ diff --git a/subprojects/groovy-swing/src/spec/doc/assets/img/SwingBuilder001.png b/subprojects/groovy-swing/src/spec/doc/assets/img/SwingBuilder001.png new file mode 100644 index 0000000..988092e Binary files /dev/null and b/subprojects/groovy-swing/src/spec/doc/assets/img/SwingBuilder001.png differ diff --git a/subprojects/groovy-swing/src/spec/doc/swing-builder.adoc b/subprojects/groovy-swing/src/spec/doc/swing-builder.adoc index f2346e9..6377c3b 100644 --- a/subprojects/groovy-swing/src/spec/doc/swing-builder.adoc +++ b/subprojects/groovy-swing/src/spec/doc/swing-builder.adoc @@ -34,7 +34,7 @@ include::{rootProjectDir}/subprojects/groovy-swing/src/spec/test/SwingBuilderTes Here is what it will look like: -image::assets/img/SwingBuilder001.gif[] +image::assets/img/SwingBuilder001.png[] This hierarchy of components would normally be created through a series of repetitive instantiations, setters, and finally attaching this child to its respective parent. Using `SwingBuilder`, however, allows you to define this hierarchy in its native form, which makes the interface design understandable simply by reading the code. diff --git a/subprojects/groovy-swing/src/spec/test/SwingBuilderTest.groovy b/subprojects/groovy-swing/src/spec/test/SwingBuilderTest.groovy index 0a96024..3bc5d7c 100644 --- a/subprojects/groovy-swing/src/spec/test/SwingBuilderTest.groovy +++ b/subprojects/groovy-swing/src/spec/test/SwingBuilderTest.groovy @@ -28,7 +28,7 @@ class DesignPatternsTest extends CompilableTestSupport { count = 0 new SwingBuilder().edt { - frame(title: 'Frame', size: [300, 300], show: true) { + frame(title: 'Frame', size: [250, 75], show: true) { borderLayout() textlabel = label(text: 'Click the button!', constraints: BL.NORTH) button(text:'Click Me',