예제 #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));
 }