Processing Forum
u manually close
a group by clicking the bar, it closes, but if you click another group's bar, both remain open. When you click a third bar, it closes the first one that you opened, but not the second.
accordion.setCollapseMode(Accordion.SINGLE);