javax.swing.plaf
Class OptionPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.OptionPaneUI
Direct Known Subclasses:
BasicOptionPaneUI, MultiOptionPaneUI

public abstract class OptionPaneUI
extends ComponentUI

An abstract base class for delegates that implement the pluggable look and feel for a JOptionPane.

See Also:
JOptionPane

Constructor Summary
OptionPaneUI()
           
 
Method Summary
abstract  boolean containsCustomComponents(JOptionPane pane)
          Determines whether the user has provided custom components for the options or the message.
abstract  void selectInitialValue(JOptionPane pane)
          Gives keyboard input focus to the component that represents the default value.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionPaneUI

public OptionPaneUI()
Method Detail

selectInitialValue

public abstract void selectInitialValue(JOptionPane pane)
Gives keyboard input focus to the component that represents the default value.

Parameters:
pane - the JOptionPane for which this delegate object provides the pluggable user interface.

containsCustomComponents

public abstract boolean containsCustomComponents(JOptionPane pane)
Determines whether the user has provided custom components for the options or the message.

Parameters:
pane - the JOptionPane for which this delegate object provides the pluggable user interface.
Returns:
true if the user has supplied any custom components; false if all components are provided by Swing or a LookAndFeel.