[英]Is there a widget for making configurable toolbar in java
Is there a widget for making configurable toolbar in java ? 是否有用于在Java中制作可配置工具栏的小部件?
Couldnt find anything in swingx but seems a common problem 在swingx中找不到任何东西,但似乎是一个常见问题
Use instances of Action
to expose your application's functionality. 使用
Action
实例公开应用程序的功能。 Add these actions to your toolbar buttons. 将这些操作添加到工具栏按钮。 Because
JToolBar
is a Container
you can add()
and remove()
buttons as needed in your toolbar editor by invoking revalidate()
and repaint()
. 由于
JToolBar
是Container
您可以通过调用revalidate()
和repaint()
在工具栏编辑器中根据需要add()
和remove()
按钮。 You can persist the current settings as suggested here . 您可以按照此处的建议保留当前设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.