import javax.swing.* import groovy.swing.* sb = new SwingBuilder() sb.edt { frame( title: "tabbed pane example", show: true, resizable: true, size: [300, 100], defaultCloseOperation: WindowConstants.EXIT_ON_CLOSE ){ tabbedPane(){ panel(name:"General"){ label(text:"General information") } panel(name:"Configuration"){ label(text:"Configuration information") } } } }実行時画面
動作環境
groovy 2.2.2, JDK 1.7 update55
0 件のコメント:
コメントを投稿