Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
import groovy.swing.SwingXBuilder
def swing = new SwingXBuilder()
def frame = swing.frame(size:[300,300]) {
	multiSplitPane() {
		split() {
			leaf(name:"left")
			divider()
			split(rowLayout:false) {
				leaf(name:"top")
				divider()
				leaf(name:"bottom")
			}
		}
		button(text:"Left Button", constraints:"left")
		button(text:"Right Button", constraints:"right")
		button(text:"Top Button", constraints:"top")
		button(text:"Bottom Button", constraints:"bottom")
	}
}.show()

That code produces the following layout: Image Added