Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Swing accordion in Nimbus look and feel

While I was reading Oracle Swing documentation, I came across this example of a set of components displaying the Nimbus Look and Feel named SwingSet3. I'm new to Swing. Can someone tell me if the accordion in the sidebar is a Swing component or not?

SwingSet3

like image 916
Tarik Avatar asked Dec 28 '22 03:12

Tarik


2 Answers

It is not a standard swing component.

You can have a look at the source code for the SwingSet3 demo here. The component on the left is a composite component made out of various other components such as JPanel, JLabel and JButton. There is a custom com.sun.swingset3.utilities.CollapsiblePanel too.

like image 187
Qwerky Avatar answered Jan 06 '23 10:01

Qwerky


A similar component is the JXTaskPane/-Container which is part of SwingX You can have a look at a demo inspired by SwingSet3.

Note that SwingX is actively maintained, its current release 1.6.3 available at maven.java.net

like image 34
kleopatra Avatar answered Jan 06 '23 10:01

kleopatra