Folder Panel

A folder panel has a title and the user can hide/show its content by clicking the title (so she can decide to view some data or not). Folder panels have a grid, just like internal panels.

A folder panel supports the following additional properties:
closed Programmatically show or hide the content. The default is false.
closedTitle The title displayed if the content is hidden. The default is "Show content".
contentBorder An additional border for the content. The default is null.
openTitle The title displayed if the content is shown. The default is "Hide content".
retainHeight Retain the preferred height independently of the closed state. The default is true.
retainWidth Retain the preferred width independently of the closed state. The default is true.

The panel will fire a PropertyChangeEvent each time its closed state changes.

Note: You can switch from FolderPanel to JPanel and vice versa.
See also: Internal Panels