One way to decompose this problem is to divide it into two classes: PigLatinApplet, which implements the user interface, and PigLatin, which contains the expertise needed to translate English into Pig Latin. PigLatinApplet should get the input from the user (in a TextField), pass it to PigLatin, which will translate it into Pig Latin, and then display the result in the TextArea.