XML is great if you know beforehand what the layout is going to be. But some applications need to generate a dynamic GUI. For example, a Domain Specific Language (DSL) that places high-level custom GUI objects on the screen under the control of a script.
Is there an API reference - with examples - for programmatically coding a GUI in Java?