The ‘accordion’ panel has become a fairly standard component of ‘web 2.0” user interfaces.

For the past couple of months at work, I’ve been working in a Swing front-end, and recently thought that it might be nice to have an accordion component there too.

Apparently, this is known in the desktop world as an “Outlook Bar”. Since I don’t use Outlook, I didn’t know :-)

I found a very straightforward implementation called JOutlookBar on InformIT.

Funny, finding advice on writing Java on a site that uses aspx pages :-O

Anyway, with thanks to Steven Haines, here is JAccordion.java - a slightly updated version.