Nimbus外观中的Java Swing手风琴 [英] Java Swing accordion in Nimbus look and feel

查看:215
本文介绍了Nimbus外观中的Java Swing手风琴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在阅读Oracle Swing文档时,遇到了此示例一组显示的Nimbus外观的组件.我是Swing的新手.有人可以告诉我边栏中的手风琴是否是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演示的源代码这里.左侧的组件是由各种其他组件(例如JPanelJLabelJButton)组成的复合组件.有一个自定义 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆