Nimbus外观中的Java Swing手风琴 [英] Java Swing accordion in Nimbus look and feel
问题描述
在阅读Oracle Swing文档时,遇到了此示例一组显示
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?
推荐答案
它不是标准的摆动组件.
It is not a standard swing component.
您可以查看SwingSet3演示的源代码这里.左侧的组件是由各种其他组件(例如JPanel
,JLabel
和JButton
)组成的复合组件.有一个自定义 com.sun.swingset3.utilities.CollapsiblePanel
.
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.
这篇关于Nimbus外观中的Java Swing手风琴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!