Пример #1
0
 /**
  * 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();
 }
Пример #2
0
 /**
  * Resets the UI property to a value from the current look and feel.
  *
  * @see JComponent#updateUI
  */
 public void updateUI() {
   setUI((ButtonUI) UIManager.getUI(this));
 }
Пример #3
0
 /**
  * Overrides <code>JComponent.updateUI</code>.
  *
  * @see JComponent#updateUI
  */
 public void updateUI() {
   setUI((ScrollBarUI) UIManager.getUI(this));
 }
Пример #4
0
 /**
  * Resets the UI property to a value from the current look and feel.
  *
  * @see JComponent#updateUI
  */
 public void updateUI() {
   setUI((PopupMenuUI) UIManager.getUI(this));
 }