JAccordionPane extends JavaFX’s TitledPane to create individual accordion sections with JJArroyo styling. It is designed to be used within a JAccordion container.
Overview
JAccordionPane provides:- Consistent styling with the JJArroyo theme
- Smooth animations when expanding/collapsing
- Title and content area
- Automatic integration with JAccordion
Constructors
Creates an empty accordion pane with no title or content.
Creates an accordion pane with the specified title and content.
Inherited Methods
Since JAccordionPane extendsTitledPane, you have access to all JavaFX TitledPane methods:
Sets the title text of the accordion pane.
Sets the content to display when expanded.
Programmatically expand or collapse the pane.
Sets an icon or graphic to display in the header.
Usage Examples
Basic Accordion Pane
BasicPane.java
Pane with Complex Content
ComplexPane.java
Using in JAccordion
AccordionExample.java
Programmatic Control
ControlPane.java
Features
- Smooth Animations: Animation is enabled by default for smooth expand/collapse transitions
- Theme Integration: Automatically styled with
j-accordion-paneclass - Flexible Content: Accept any JavaFX Node as content (VBox, forms, cards, etc.)
Style Classes
.j-accordion-pane- Applied to the component- Inherits all TitledPane style classes from JavaFX
See Also
- JAccordion - Container for multiple accordion panes
- JCard - Alternative collapsible container
Source:
com.jjarroyo.components.JAccordionPane in JAccordionPane.java:6