//StyleChecker.java import java.awt.*; import java.applet.*; import java.awt.event.*; public class StyleChecker extends Applet implements ActionListener{ Label lblPlain = new Label("Sample Plain Text"); Label lblBold = new Label("Sample Bold Text"); Label lblItalic = new Label("Sample Italic Text"); Label lblBoth = new Label("Sample Bold Italic Text"); public void init(){ add (lblPlain); add (lblBold); add (lblItalic); add (lblBoth); lblPlain.setFont(new Font("Arial", Font.PLAIN, 20)); lblBold.setFont(new Font("Arial", Font.BOLD, 20)); lblItalic.setFont(new Font("Arial", Font.ITALIC, 20)); lblBoth.setFont(new Font("Arial", Font.BOLD | Font.ITALIC, 20)); } // end init public void actionPerformed(ActionEvent e){ //do nothing } // end actionPerformed } // end class def