jscrollpane滚动条外观解决思路

jscrollpane滚动条外观
怎么设置jscrollpane的滚动条外观啊,包括滚动条所在的滚动区域

------解决方案--------------------
自定义一个UI类CustomScrollBarUI,让它继承自
javax.swing.plaf.basic.BasicScrollBarUI,
跟据需要重写
protected void configureScrollBarColors()protected
JButton createDecreaseButton(int orientation)
protected JButton createIncreaseButton(int orientation)
等方法,然后在ScrollPane 中设置新的UI
yourScrollPane.getVerticalScrollBar().setUI(new CustomScrollBarUI());
就可以了。