File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Accordion Widget Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Accordion Widget" Watch "Accordion Widget" New topic

Accordion Widget

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 751
Hi guys! Does anyone know where I can get an accordion widget? Something similar to this...

I've seen one in swing before in one of my previous companies but I forgot where they downloaded it. Thanks!

SCJP 1.5
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
These appear to be run by JavaScript.
Here's an idea of how you could build this in java.
It makes use of the Container method setComponentZOrder
which was introduced in j2se 1.5
Mahesh Kedari
Ranch Hand

Joined: Nov 28, 2009
Posts: 111
Excellent Craig..!
Thanks a lot for this code...!!

Mahesh Kedari - Fidus Technologies Ltd.
I agree. Here's the link:
subject: Accordion Widget
It's not a secret anymore!