This simple TitledPanelDemo application demonstrates basic functionality of the JXTitledPanel component.

A title text and an optional container is passed to the JXTitledPanel constructor. The CompoundBorder is used to add some extra space around each panel.

All relevant lines are highlighted. Press the "Run..." button to start the example.