RecipeViewer.java (Continued)
addWindowListener(this); // for the close box.
setLayout( new BorderLayout() );
add(new Label("The Recipe Viewer"),BorderLayout.NORTH);
recipeTextArea = new TextArea(100, 20);
add(recipeTextArea, BorderLayout.CENTER);
recipeSelector = new Choice();
recipeSelector.addItem("Select recipe");
recipeSelector.addItem("Limoncello");
recipeSelector.addItem("Salsa");
add(recipeSelector, BorderLayout.SOUTH);
recipeSelector.addItemListener(this); // for the Choice.