Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accordion Widget

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys! Does anyone know where I can get an accordion widget? Something similar to this...

http://www.javaserver.org/jmaki/spry/plainAccordion.jsp

I've seen one in swing before in one of my previous companies but I forgot where they downloaded it. Thanks!
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excellent Craig..!
Thanks a lot for this code...!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic