This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 746
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
Similar Threads
present data in collasible and expandible format.
Multiple jQuery accordions?
jquery accordion and tabs on the same page
accordion in struts2-jquery-plugin-2.1.0 not working
Jquery or Prototype