Skip to content

Commit 4fbb7c2

Browse files
committed
8263472: Specification of JComponent::updateUI should document that the default implementation does nothing
Reviewed-by: aivanov, darcy
1 parent e47dfb8 commit 4fbb7c2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/java.desktop/share/classes/javax/swing/JComponent.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,15 +656,18 @@ public JComponent() {
656656

657657

658658
/**
659-
* Resets the UI property to a value from the current look and feel.
660-
* <code>JComponent</code> subclasses must override this method
659+
* This method is called to update the UI property to a value from the
660+
* current look and feel.
661+
* {@code JComponent} subclasses must override this method
661662
* like this:
662663
* <pre>
663664
* public void updateUI() {
664665
* setUI((SliderUI)UIManager.getUI(this);
665666
* }
666667
* </pre>
667668
*
669+
* @implSpec The default implementation of this method does nothing.
670+
*
668671
* @see #setUI
669672
* @see UIManager#getLookAndFeel
670673
* @see UIManager#getUI

0 commit comments

Comments
 (0)