Class AccordionPanel<K>

Type Parameters:
K - The type of key objects that are used to identify sub-panels.
All Implemented Interfaces:
ImageObserver, LayoutManager, MenuContainer, Serializable, Accessible

public class AccordionPanel<K> extends JPanel implements LayoutManager
Panel that contains a number of vertically stacked sub-panels, which can be expanded or collapsed when clicking on them. The sub-panels consist of a title panel (which is always displayed), and a detail panel (which is only displayed when the sub-panel is expanded). Whether one or multiple sub-panels can be expanded simultaneously can be configured.

This class uses a custom LayoutManager to achieve the desired effect, changing the layout manager will mean these capabilities are lost.

See Also: