messageBorder = defaults.getBorder("OptionPane.messageAreaBorder"); messageForeground = defaults.getColor("OptionPane.messageForeground"); buttonBorder = defaults.getBorder("OptionPane.buttonAreaBorder");
messageBorder = UIManager.getBorder("OptionPane.messageAreaBorder"); messageForeground = UIManager.getColor("OptionPane.messageForeground"); buttonBorder = UIManager.getBorder("OptionPane.buttonAreaBorder");
  protected void installDefaults()  {    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    optionPane.setFont(defaults.getFont("OptionPane.font"));    optionPane.setBackground(defaults.getColor("OptionPane.background"));    optionPane.setForeground(defaults.getColor("OptionPane.foreground"));    optionPane.setBorder(defaults.getBorder("OptionPane.border"));    optionPane.setOpaque(true);    messageBorder = defaults.getBorder("OptionPane.messageAreaBorder");    messageForeground = defaults.getColor("OptionPane.messageForeground");    buttonBorder = defaults.getBorder("OptionPane.buttonAreaBorder");    minimumSize = defaults.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");    */  }