Code segment below shows how to change the look and feel of swing components.

Java Code:
  try {
    UIManager.setLookAndFeel(
      UIManager.getSystemLookAndFeelClassName());
    } 
  catch (Exception e) { 
    e.printStackTrace();
}