messageBorder = UIManager.getBorder("OptionPane.messageAreaBorder"); messageForeground = UIManager.getColor("OptionPane.messageForeground"); buttonBorder = UIManager.getBorder("OptionPane.buttonAreaBorder");
  protected void installDefaults()  {    LookAndFeel.installColorsAndFont(optionPane, "OptionPane.background",                                     "OptionPane.foreground",                                     "OptionPane.font");    LookAndFeel.installBorder(optionPane, "OptionPane.border");    optionPane.setOpaque(true);    messageBorder = UIManager.getBorder("OptionPane.messageAreaBorder");    messageForeground = UIManager.getColor("OptionPane.messageForeground");    buttonBorder = UIManager.getBorder("OptionPane.buttonAreaBorder");    minimumSize = UIManager.getDimension("OptionPane.minimumSize");    // FIXME: Image icons don't seem to work properly right now.    // Once they do, replace the synthetic icons with these ones.    /*    warningIcon = (IconUIResource) defaults.getIcon("OptionPane.warningIcon");    infoIcon = (IconUIResource) defaults.getIcon("OptionPane.informationIcon");    errorIcon = (IconUIResource) defaults.getIcon("OptionPane.errorIcon");    questionIcon = (IconUIResource) defaults.getIcon("OptionPane.questionIcon");    */  }