private void configureMessageLabel(JLabel label){
  Color color=(Color)DefaultLookup.get(optionPane,this,"OptionPane.messageForeground");
  if (color != null) {
    label.setForeground(color);
  }
  Font messageFont=(Font)DefaultLookup.get(optionPane,this,"OptionPane.messageFont");
  if (messageFont != null) {
    label.setFont(messageFont);
  }
}

private void configureMessageLabel ( JLabel label ) { Color color = ( Color ) DefaultLookup . get ( optionPane , this , "OptionPane.messageForeground" ) ; if ( color != null ) { label . setForeground ( color ) ; } Font messageFont = ( Font ) DefaultLookup . get ( optionPane , this , "OptionPane.messageFont" ) ; if ( messageFont != null ) { label . setFont ( messageFont ) ; } }
configures any necessary colors / fonts for the specified label used representing the message .
