Loosing vertical scrollbar in netbeans nimbus LAF

喜你入骨 提交于 2019-12-10 15:19:53

问题


I'm using Netbeans 8.0.2 and the Nimbus Look And Feel. At a certain point, when the vertical scroll slider becomes small, it disappears.

Has anyone the same behavior or any fix for that problem?

EDIT: This happens only in Nimbus and Dark Nimbus LAF


回答1:


There is a bug filed here. Assuming this is your problem, after setting your look and feel to Nimbus, try adding:

LookAndFeel lookAndFeel = UIManager.getLookAndFeel();
UIDefaults defaults = lookAndFeel.getDefaults();
defaults.put("ScrollBar.minimumThumbSize", new Dimension(30, 30));


来源:https://stackoverflow.com/questions/32611999/loosing-vertical-scrollbar-in-netbeans-nimbus-laf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!