You can draw network diagrams here. The nodes are not created by dragging (the usual JDiagram way) but by clicking, which demonstrates how you can override default behavior by using proper event handling. The sample also shows how you can attach text to objects. The simple JDiagram objects can hold text only in their interior, but a simple trick is used here - transparent nodes containing text are attached to the primary nodes.