问题
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