File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accordion Widget

 
Timothy Sam
Ranch Hand
Posts: 751
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excellent Craig..!
Thanks a lot for this code...!!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic