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

Reviewed-by: aivanov, darcy
This commit is contained in:
Prasanta Sadhukhan 2021-03-26 11:29:33 +00:00
parent e47dfb8e28
commit 4fbb7c24c2

View File

@ -656,8 +656,9 @@ public abstract class JComponent extends Container implements Serializable,
/**
* Resets the UI property to a value from the current look and feel.
* <code>JComponent</code> subclasses must override this method
* This method is called to update the UI property to a value from the
* current look and feel.
* {@code JComponent} subclasses must override this method
* like this:
* <pre>
* public void updateUI() {
@ -665,6 +666,8 @@ public abstract class JComponent extends Container implements Serializable,
* }
* </pre>
*
* @implSpec The default implementation of this method does nothing.
*
* @see #setUI
* @see UIManager#getLookAndFeel
* @see UIManager#getUI