title: Can we combine 2 font styles together in Java?
body: <p>I am trying to change the font of a <code>JLabel</code> so it is both <code>BOLD</code> and <code>ITALIC</code>, but it seems there's no static field defined to do so. How can we combine two styles so we can have a bold, italic font?</p>
  
  <p>This code will do it with just bold by using the static field <code>BOLD</code>, but there's no field defined for both bold and italic:</p>
  
  <pre><code>Font font = new Font("Verdana", Font.BOLD, 12);
  label = new JLabel ("New Image") ;
  label.setFont(font);
  label.setForeground(Color.Gray.darker());
  </code></pre>