Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 10 commits into from
7 changes: 5 additions & 2 deletions src/java.desktop/share/classes/javax/swing/JComponent.java
Expand Up @@ -656,15 +656,18 @@ public JComponent() {


/**
* 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() {
* setUI((SliderUI)UIManager.getUI(this);
* }
* </pre>
*
* @implSpec The default implementation of this method does nothing.
*
prsadhuk marked this conversation as resolved.
Show resolved Hide resolved
* @see #setUI
* @see UIManager#getLookAndFeel
* @see UIManager#getUI
Expand Down