Skip to content

Instantly share code, notes, and snippets.

@nise-nabe
Created May 25, 2012 08:39
Show Gist options
  • Save nise-nabe/2786668 to your computer and use it in GitHub Desktop.
Save nise-nabe/2786668 to your computer and use it in GitHub Desktop.
これって画面中央に表示されないのかな
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