- highlight:ハイライトの色
- shadow:影の色
import java.awt.* import javax.swing.* import groovy.swing.* sb = new SwingBuilder() sb.edt { frame( title: "etched border example", show: true, resizable: true, size: [200, 100], defaultCloseOperation: WindowConstants.EXIT_ON_CLOSE ){ label(text:"etched border example1", border: etchedBorder(), constraints:BorderLayout.NORTH ) label(text:"etched border example2", border: raisedEtchedBorder(highlight: new Color(0xff, 0x00, 0x00), shadow: new Color(0x00, 0x00, 0xff)), constraints:BorderLayout.SOUTH ) } }実行時画面
動作環境
groovy 2.2.2, JDK 1.7 update55
0 件のコメント:
コメントを投稿