The document discusses the SwingBuilder in Groovy, which provides a declarative domain-specific language (DSL) for building Swing graphical user interface (GUI) applications. It covers SwingBuilder basics like building windows and components, advanced features like actions, bindings, and threading, and how to extend SwingBuilder by adding custom components or entire suites of components from libraries like SwingX.
Call Girls Service In Old Town Dubai ((0551707352)) Old Town Dubai Call Girl ...
JavaOne TS-5098 Groovy SwingBuilder
1. Building Rich Applications with Groovy's SwingBuilder Danno Ferrin, Sr. Software Engineer, Intelligent Software Solutions Andres Almiray, Principal MTS, Oracle Speaker’s logo here (optional)
2.
3.
4.
5.
6. A Quick HelloWorld Example groovy.swing.SwingBuilder.build { root = frame(title:'Hello World', show:true, pack:true) { flowLayout() label('Enter a message:') textField(id:'name', columns:20) button('Click', actionPerformed: { ActionEvent e -> if (name.text) optionPane().showMessageDialog( root, name.text) }) } }
7.
8. Just a Few nodes There are many more nodes that what this slide can hold Windows Containers Controls Layouts dialog panel button gridBagLayout frame scrollPane textfield flowLayout window splitPane combobox boxLayout optionPane tabbedPane checkbox gridLayout fileChooser toolBar table cardLayout colorChooser box textArea springLayout container* widget*