mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
tests for scrollbar color changes
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user