SwingX 和 JToggleButton
在我的应用程序中,我使用 SwingX 库中的 JXButton,我真的很喜欢画家方法。现在我必须将我的简单按钮更改为切换按钮,并为未选择/选择状态使用不同的画家。不幸的是我找不到 JXToggleButton。有没有办法保持画家方法的优势?
In my application i'm using JXButton from the SwingX library, i really like the painter methods. Now i have to change my simple button to toggle button and have different painter for the unselected/selected state. Unfortunately i couldn't find JXToggleButton. Is there a solution to keep the benefit of painter methods ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建 JXType 组件实际上相当容易。您可能需要对边界、焦点等进行一些额外的检查。但这是您将采取的一般方法
It's actually fairly easy to create a JXType component. You may need to do some extra checks for borders, focus, etc.. but this is the general approach you would take