Sure
, once you have configured groovy-all-1.1-BETA-1.jar, jide-oss-2.0.3.01.jar (or 2.0.4) jidebuilder-1.0-SNAPSHOT.jar in your classpath you may copy the example attached at the end of this message. It should display a frame with a couple of buttons, a multilineLabel and a comboBoxSearchable. You may find more info on SwingBuilder at
http://groovy.codehaus.org/GUI+Programming+with+Groovy
BTW, the current dev version (not the one in the zip) also supports the widgets at dialog, hints, spinner and popup packages, I'll post later that version after running tests on it.
--------------------
package swing
import javax.swing.*
import groovy.swing.jide.*
import com.jidesoft.swing.*
class JideMain {
private JFrame frame
def jide
public JideMain() {
jide = new JideBuilder()
frame = jide.frame( title: "Jide", size: [640,480],
locationRelativeTo: null,
layout: new BorderLayout(5,5) ){
action( id:"clickAction", name:"Click", mnemonic: "C", closure: {println "clicked!"} )
button( label: "Swing", constraints: BorderLayout.WEST, action: jide.clickAction )
rangeSlider( minimum: 0, maximum: 100, lowValue:0, highValue: 100, constraints: BorderLayout.SOUTH )
jideButton( id:"b", label: "Jide", constraints: BorderLayout.EAST, buttonStyle: ButtonStyle.HYPERLINK_STYLE,
action: jide.clickAction )
panel {
multilineLabel(text:"JIDE1\nJIDE2\nJIDE3", constraints: BorderLayout.CENTER )
comboBoxSearchable( id: "ac", constraints: BorderLayout.SOUTH, items: ["a","aa","aaa","b","bb","bbb"] )
}
}
}
public void setVisible( boolean visible ){
frame.visible = visible
}
public static void main(String[] args) {
SwingUtilities.invokeLater { new JideMain().setVisible(true) }
}
}