Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有许多 SimpleButtonAction 的菜单栏。其中一些需要显示它们是否被按下(例如,“显示网格”按钮)。
我一直在寻找这个功能,但我不是说英语的人,我什至不知道这是否被称为“触发”或其他任何东西。
我找到了 JToggleButton,但无法将它添加到 bibliothek.gui.dock.DefaultDockable 的菜单栏中。
任何提示,以便我可以更好地搜索一些信息?
JCheckBoxMenuItem ? 切换按钮?