Browse Source

滚动条按钮红边

master
hzzz 7 years ago
parent
commit
1eca294690
  1. 2
      designer_base/src/com/fr/design/gui/icontainer/UIScrollPaneUI.java

2
designer_base/src/com/fr/design/gui/icontainer/UIScrollPaneUI.java

@ -36,13 +36,11 @@ public class UIScrollPaneUI extends MetalScrollPaneUI implements PropertyChangeL
// Note: It never happened before Java 1.5 that scrollbar is null // Note: It never happened before Java 1.5 that scrollbar is null
JScrollBar sb = scrollpane.getHorizontalScrollBar(); JScrollBar sb = scrollpane.getHorizontalScrollBar();
if (sb != null) { if (sb != null) {
sb.setBackground(Color.red);
sb.putClientProperty(MetalScrollBarUI.FREE_STANDING_PROP, Boolean.FALSE); sb.putClientProperty(MetalScrollBarUI.FREE_STANDING_PROP, Boolean.FALSE);
} }
sb = scrollpane.getVerticalScrollBar(); sb = scrollpane.getVerticalScrollBar();
if (sb != null) { if (sb != null) {
sb.setBackground(Color.red);
sb.putClientProperty(MetalScrollBarUI.FREE_STANDING_PROP, Boolean.FALSE); sb.putClientProperty(MetalScrollBarUI.FREE_STANDING_PROP, Boolean.FALSE);
} }
} }

Loading…
Cancel
Save