简体   繁体   English

是否有用于在Java中制作可配置工具栏的小部件

[英]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() . 由于JToolBarContainer您可以通过调用revalidate()repaint()在工具栏编辑器中根据需要add()remove()按钮。 You can persist the current settings as suggested here . 您可以按照此处的建议保留当前设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Java使工具栏可见 - Java Making toolbar visible 使计时器在属性文件中可配置 - Making timer configurable in properties file Java中可配置的枚举 - Configurable enum in Java java.lang.ClassCastException:android.widget.LinearLayout无法强制转换为android.support.v7.widget.Toolbar - java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.support.v7.widget.Toolbar Java EE5 +中的可配置持久性 - Configurable persistence in Java EE5+ OSGI的可配置Java Servlet - Configurable Java Servlet from OSGI java.lang.ClassCastException:android.support.design.widget.AppBarLayout无法转换为android.support.v7.widget.Toolbar - java.lang.ClassCastException: android.support.design.widget.AppBarLayout cannot be cast to android.support.v7.widget.Toolbar 在空对象引用上使 android.support.v7.widget.Toolbar.setTitle(java.lang.CharSequence)'无效 - Void android.support.v7.widget.Toolbar.setTitle(java.lang.CharSequence)' on a null object reference android.support.v7.widget.toolbar 在使用 android studio 的 java 文件中找不到? - android.support.v7.widget.toolbar is not found in java file using android studio? 如何修复 Java 中的“找不到以下类:-android.support.v7.widget.Toolbar”错误 - How to fix 'The following classes could not be found: - android.support.v7.widget.Toolbar' error in Java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM