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.
好的,所以我现在已经搜索了谷歌一段时间,看看我是否能找到答案,但没有骰子。也许我只是在寻找错误的东西,但这是我想知道的:
如何更改 JSlider 组件上实际旋钮的宽度?不是如何改变 JSlider 的宽度。
任何帮助将不胜感激!
BasicSliderUI sliderUI = new javax.swing.plaf.basic.BasicSliderUI(jTimeSlider){ protected Dimension getThumbSize() { return new Dimension(15, 20); } }; jTimeSlider.setUI(sliderUI);
其中尺寸宽度是旋钮的宽度。