UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
 Font font=new Font("JDialog",Font.PLAIN,12);
 String names[]={"Label","CheckBox","PopupMenu",
  "MenuItem","CheckBoxMenuItem","JRadioButtonMenuItem",
  "ComboBox","Button","Tree","ScrollPane","TabbedPane",
  "EditorPane","TitledBorder","Menu","TextArea","OptionPane",
  "MenuBar","ToolBar","ToggleButton","ToolTip","ProgressBar",
  "TableHeader","Panel","List","ColorChooser","PasswordField",
  "TextField","Table","Label","Viewport","RadioButtonMenuItem",
  "RadioButton","DesktopPane","InternalFrame"};
for(int i=0;i<names.length;i++){
UIManager.put(names[i]+".font",font);
}
UIManager.put("OptionPane.messageFont",font);
UIManager.put("OptionPane.buttonFont",font);
UIManager.put("Label.foreground",Color.black);
UIManager.put("Border.foreground",Color.black);
UIManager.put("TitledBorder.titleColor",Color.black);