/** * Resets the UI property to a value from the current look and feel. * * @see JComponent#updateUI */ public void updateUI() { setUI((SliderUI) UIManager.getUI(this)); // The labels preferred size may be derived from the font // of the slider, so we must update the UI of the slider first, then // that of labels. This way when setSize is called the right // font is used. updateLabelUIs(); }
/** * Resets the UI property to a value from the current look and feel. * * @see JComponent#updateUI */ public void updateUI() { setUI((ButtonUI) UIManager.getUI(this)); }
/** * Overrides <code>JComponent.updateUI</code>. * * @see JComponent#updateUI */ public void updateUI() { setUI((ScrollBarUI) UIManager.getUI(this)); }
/** * Resets the UI property to a value from the current look and feel. * * @see JComponent#updateUI */ public void updateUI() { setUI((PopupMenuUI) UIManager.getUI(this)); }