private void populateLabelFontDetails(java.awt.Font font){
  labelFontName.setText(font.getFontName());
  String style;
  if (font.isBold() && font.isItalic()) {
    style="Bold, Italic";
  }
 else   if (font.isBold()) {
    style="Bold";
  }
 else   if (font.isItalic()) {
    style="Italic";
  }
 else {
    style="Plain";
  }
  labelFontStyle.setText(style);
  labelFontSize.setText(String.valueOf(font.getSize()));
}

private void populateLabelFontDetails ( java . awt . Font font ) { labelFontName . setText ( font . getFontName ( ) ) ; String style ; if ( font . isBold ( ) && font . isItalic ( ) ) { style = "Bold, Italic" ; } else if ( font . isBold ( ) ) { style = "Bold" ; } else if ( font . isItalic ( ) ) { style = "Italic" ; } else { style = "Plain" ; } labelFontStyle . setText ( style ) ; labelFontSize . setText ( String . valueOf ( font . getSize ( ) ) ) ; }
populate label font details .
