tests for scrollbar color changes

This commit is contained in:
Ben Fry
2021-10-13 18:52:40 -04:00
parent ee140d4a5a
commit b4cd8d4a19
@@ -128,6 +128,20 @@ public class JEditTextArea extends JComponent
add(RIGHT, vertical = new JScrollBar(Adjustable.VERTICAL));
add(BOTTOM, horizontal = new JScrollBar(Adjustable.HORIZONTAL));
/*
vertical.setBackground(Color.YELLOW);
horizontal.setBackground(Color.YELLOW);
System.out.println(vertical.getUI());
//vertical.setUI(new javax.swing.plaf.basic.BasicScrollBarUI() {
vertical.setUI(new com.apple.laf.AquaScrollBarUI() {
@Override
protected void configureScrollBarColors() {
this.thumbColor = Color.GREEN;
}
});
*/
// Add some event listeners
vertical.addAdjustmentListener(new AdjustHandler());
horizontal.addAdjustmentListener(new AdjustHandler());