/* * File: PigLatinApplet.java * Author: Java Java Java Staff * Description: This class provides a GUI to the PigLatin class. * It accepts a sentence or phrase as input and gets a PigLatin * object to translate it into Pig Latin. */ import java.applet.*; import java.awt.*; import java.awt.event.*; public class PigLatinApplet extends Applet implements ActionListener { private Label prompt; private TextField inputField; private TextArea outputArea; private String inputString; /** * init() sets up the applet's GUI. */ public void init() { //Insert your code here } //init() /** * actionPerformed() Whenver user types Enter in the text field this * method reads the input and translates it to Pig Latin. */ public void actionPerformed(ActionEvent e) { //Insert your code here } // actionPerformed() } // PigLatinApplet