Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-6
-
None
-
None
-
Groovy Version: 1.0-JSR-06 JVM: 1.5.0_04-b05 Windows XP Pro
Description
While the commented code works (if uncommented), the not commented code does not. The only difference is the name of the comboBox variable "box" or "comboBox". If it is "box", it works, if it is "comboBox", it doesn't.
/import groovy.swing.
import javax.swing.DefaultComboBoxModel
def swing = new SwingBuilder()
def frame = swing.frame(title:'Test') {
panel {
def comboBox = comboBox(items:['Tralala'])
passwordField(columns:10, actionPerformed:
)
}
}
frame.pack()
frame.show()*/
import groovy.swing.*
import javax.swing.DefaultComboBoxModel
def swing = new SwingBuilder()
def frame = swing.frame(title:'Test') {
panel {
def box = comboBox(items:['Tralala'])
passwordField(columns:10, actionPerformed:
)
}
}
frame.pack()
frame.show()