public void selectInitialValue(){
  OptionPaneUI ui=getUI();
  if (ui != null) {
    ui.selectInitialValue(this);
  }
}

public void selectInitialValue ( ) { OptionPaneUI ui = getUI ( ) ; if ( ui != null ) { ui . selectInitialValue ( this ) ; } }
requests that the initial value be selected , which will set focus to the initial value . this method should be invoked after the window containing the option pane is made visible .
