如何反转 JSpinner 布局
我有一个 JSpinner:
我希望向上/向下按钮位于左侧,以及要在左侧对齐的文本。
有没有一种简单的方法可以实现这一目标?谢谢
JSpinner spinner = new JSpinner();
I have a JSpinner:
I want the up/down buttons to be on the left side, and also the text to align on the left.
Is there a simple way I can achieve this? Thank you
JSpinner spinner = new JSpinner();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以重写 BasicSpinnerUI 中的方法来创建下一个和上一个按钮:
自定义微调器 UI:
演示:
You can override the methods found in BasicSpinnerUI for creating the next and previous buttons:
Custom Spinner UI:
Demo: