Quick SwingBuilder Sample


/ Published in: Groovy
Save to your folder(s)



Copy this code and paste it in your HTML
  1. new groovy.swing.SwingBuilder().frame(size: [300, 75], title: "Password Demo", defaultCloseOperation: javax.swing.WindowConstants.EXIT_ON_CLOSE){
  2. passwordField(columns:10, actionPerformed: { event -> println event.source.text })
  3. }.show()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.