Contents
Installation
...........................................................................................................................6
Overview
..............................................................................................................................7
YAML
........................................................................................................................7
Compact YAML syntax
........................................................................................... 9
Development tools
................................................................................................10
Benefits
..................................................................................................................10
Drawbacks
............................................................................................................. 11
Swing JavaBuilder in 60 seconds or less
...................................................................... 12
Core Features
....................................................................................................................17
Obtaining references to created components
....................................................17
Hooking up event listeners to Java methods
.....................................................17
Databinding
............................................................................................................18
Input validation
......................................................................................................19
Executing long running methods on a background thread
.............................. 20
Internationalization
............................................................................................... 22
Enum property values
...........................................................................................22
Static int constant property values
......................................................................23
Using custom components
.................................................................................. 23
Custom global commands
....................................................................................24
Build events
...........................................................................................................24
Hot deployment of UI components
......................................................................25
Swing Features
.................................................................................................................26
Overview
................................................................................................................ 26
Actions and menus
...............................................................................................26
Borders
...................................................................................................................28
Button Group
.........................................................................................................28
Colors
.....................................................................................................................29
Fonts
.......................................................................................................................29
Icons and images
..................................................................................................29
JFrame
....................................................................................................................30
JScrollPane
............................................................................................................30
JSplitPane
..............................................................................................................30
JTabbedPane
.........................................................................................................30
JTable
.....................................................................................................................31
Event handlers
.......................................................................................................31
Swing Layout Management
............................................................................................. 34
MigLayout DSL
......................................................................................................34
MigLayout
.............................................................................................................. 37
CardLayout
............................................................................................................ 37
FlowLayout
............................................................................................................ 37
Extending the JavaBuilders engine
................................................................................39
Appendix
........................................................................................................................... 40
Layout Samples
.....................................................................................................40
Swing JavaBuilder - Achieving maximum productivity with minimum code via declarative UIs
i