Search in sources :

Example 1 with WindowsSliderUI

use of com.sun.java.swing.plaf.windows.WindowsSliderUI in project gephi by gephi.

the class JRangeSlider method updateUI.

/**
     * Overrides the superclass method to install the UI delegate to draw two
     * thumbs.
     */
@Override
public void updateUI() {
    ComponentUI uiv = UIManager.getUI(this);
    if (uiv instanceof WindowsSliderUI) {
        uiv = new JRangeSliderWindowsUI(this);
    } else {
        uiv = new JRangeSliderBasicUI(this);
    }
    setUI(uiv);
    // Update UI for slider labels.  This must be called after updating the
    // UI of the slider.  Refer to JSlider.updateUI().
    updateLabelUIs();
}
Also used : ComponentUI(javax.swing.plaf.ComponentUI) WindowsSliderUI(com.sun.java.swing.plaf.windows.WindowsSliderUI)

Aggregations

WindowsSliderUI (com.sun.java.swing.plaf.windows.WindowsSliderUI)1 ComponentUI (javax.swing.plaf.ComponentUI)1