Search in sources :

Example 1 with SynthScrollBarUI

use of javax.swing.plaf.synth.SynthScrollBarUI in project jdk8u_jdk by JetBrains.

the class bug6924059 method main.

public static void main(String[] args) throws Exception {
    UIManager.setLookAndFeel(new SynthLookAndFeel());
    SwingUtilities.invokeAndWait(new Runnable() {

        public void run() {
            new JScrollBar().setUI(new SynthScrollBarUI() {

                protected void configureScrollBarColors() {
                    super.configureScrollBarColors();
                    isMethodCalled = true;
                }
            });
            if (!isMethodCalled) {
                throw new RuntimeException("The configureScrollBarColors was not called");
            }
        }
    });
}
Also used : SynthScrollBarUI(javax.swing.plaf.synth.SynthScrollBarUI) SynthLookAndFeel(javax.swing.plaf.synth.SynthLookAndFeel)

Aggregations

SynthLookAndFeel (javax.swing.plaf.synth.SynthLookAndFeel)1 SynthScrollBarUI (javax.swing.plaf.synth.SynthScrollBarUI)1