[英]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
.在阅读 Oracle Swing 文档时,我遇到了一组显示 Nimbus 外观的组件示例,名为
SwingSet3
。 I'm new to Swing. Can someone tell me if the accordion in the sidebar is a Swing component or not?我是 Swing 的新手。有人可以告诉我侧边栏中的手风琴是否是 Swing 组件吗?
It is not a standard swing component.它不是标准的 swing 组件。
You can have a look at the source code for the SwingSet3 demo here .您可以在此处查看SwingSet3 演示的源代码。 The component on the left is a composite component made out of various other components such as
JPanel
, JLabel
and JButton
.左边的组件是一个复合组件,由各种其他组件组成,例如
JPanel
、 JLabel
和JButton
。 There is a custom com.sun.swingset3.utilities.CollapsiblePanel
too.还有一个自定义
com.sun.swingset3.utilities.CollapsiblePanel
。
A similar component is the JXTaskPane/-Container which is part of SwingX You can have alook at a demo inspired by SwingSet3.一个类似的组件是 JXTaskPane/-Container,它是SwingX的一部分。您可以查看受 SwingSet3 启发的演示。
Note that SwingX is actively maintained, its current release 1.6.3 available at maven.java.net请注意,SwingX 得到积极维护,其当前版本 1.6.3 可在 maven.java.net 获得
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.