Class Accordion

java.lang.Object
All Implemented Interfaces:
Styleable, EventTarget, Skinnable

public class Accordion extends Control

An accordion is a group of TitlePanes. Only one TitledPane can be opened at a time.

The TitledPane content in an accordion can be any Node such as UI controls or groups of nodes added to a layout container.

It is not recommended to set the MinHeight, PrefHeight, or MaxHeight for this control. Unexpected behavior will occur because the Accordion's height changes when a TitledPane is opened or closed.

Accordion sets focusTraversable to false.

Example:

 TitledPane t1 = new TitledPane("T1", new Button("B1"));
 TitledPane t2 = new TitledPane("T2", new Button("B2"));
 TitledPane t3 = new TitledPane("T3", new Button("B3"));
 Accordion accordion = new Accordion();
 accordion.getPanes().addAll(t1, t2, t3);
Image of the Accordion control
Since:
JavaFX 2.0