| Package | Description | 
|---|---|
| javax.swing.plaf | Provides one interface and many abstract classes that
Swing uses to provide its pluggable look-and-feel capabilities. | 
| javax.swing.plaf.basic | Provides user interface objects built according to the
Basic look and feel. | 
| javax.swing.plaf.multi | Provides user interface objects that combine two or more look and feels. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract boolean | OptionPaneUI. containsCustomComponents(JOptionPane op)Returns true if the user has supplied instances of Component for
 either the options or message. | 
| abstract void | OptionPaneUI. selectInitialValue(JOptionPane op)Requests the component representing the default value to have
 focus. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected JOptionPane | BasicOptionPaneUI. optionPaneJOptionPanethat the receiver is providing the
 look and feel for. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | BasicOptionPaneUI. containsCustomComponents(JOptionPane op)Returns true if in the last call to validateComponent the message
 or buttons contained a subclass of Component. | 
| void | BasicOptionPaneUI. selectInitialValue(JOptionPane op)If inputComponent is non-null, the focus is requested on that,
 otherwise request focus on the default value | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | MultiOptionPaneUI. containsCustomComponents(JOptionPane a)Invokes the  containsCustomComponentsmethod on each UI handled by this object. | 
| void | MultiOptionPaneUI. selectInitialValue(JOptionPane a)Invokes the  selectInitialValuemethod on each UI handled by this object. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.