Specification of JComponent::updateUI should document that the default implementation does nothing

XMLWordPrintable

      The current state of specification for
      https://docs.oracle.com/en/java/javase/15/docs/api/java.desktop/javax/swing/JComponent.html#updateUI()
      is the following
      ===============
      Resets the UI property to a value from the current look and feel. JComponent subclasses must override this method like this:

         public void updateUI() {
            setUI((SliderUI)UIManager.getUI(this);
         }
      ===============

      It's unclear from the spec that the original implementation of the method does nothing. This deserves to be mentioned explicitly.

            Assignee:
            Prasanta Sadhukhan
            Reporter:
            Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: