// defining a Font with two style attributes
Font f = new Font( "SansSerif", Font.BOLD + Font.ITALIC, 12 );