Created
May 25, 2012 08:39
-
-
Save nise-nabe/2786668 to your computer and use it in GitHub Desktop.
これって画面中央に表示されないのかな
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.swing.SwingBuilder | |
import javax.swing.* | |
def swingBuilder = new SwingBuilder() | |
swingBuilder.frame(title:"Hello!", | |
defaultCloseOperation:WindowConstants.EXIT_ON_CLOSE, | |
pack: true, | |
locationRelativeTo: null, | |
show: true) { | |
panel(preferredSize: [500, 500]){ | |
label("hello, world!") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment