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();
}
Aggregations