GridBagger is a tool to understand how GridBagLayout works as well as saving time in creating complex layouts and generating the associated source code. GridBagger works by allowing the addition of any number of a notional component to a container. Then by altering the GridBagConstraint's for each instance, the resulting layout can be seen instantly. Once a layout has been designed, pressing GridBagger's "Source" button will give you the Java code for the layout in a new window and this can be either saved to a file or copied into the system clipboard. The source code generated is based on a generic class with the name "SomeComponent" for which the programmer should substitute the actual component class name used.