import java.awt.*; public class Fonts extends javax.swing.JApplet { public void paint(Graphics screen) { Graphics2D screen2D = (Graphics2D) screen; Font currentFont = new Font("TimesRoman", Font.PLAIN, 20); screen2D.setFont(currentFont); screen2D.drawString("If I've said it once, I've said it a " + "thousand times, darling,", 5, 50); currentFont = new Font("TimesRoman", Font.ITALIC, 40); screen2D.setFont(currentFont); screen2D.drawString("you look MAH-VE-LOUS", 5, 80); } }