The ControlNode class derived from DiagramNode allows using any Java Swing component as a node in the diagram. The sample below uses ControlNode objects to implement a simple form editor. Select a control type from the combo box and draw in the form area. When your form is ready, try it with the 'Test Form' button.