RecipeViewer.java (Continued)
public void itemStateChanged(ItemEvent e) {
String item = recipeSelector.getSelectedItem();
if (item.equals("Limoncello")) {
"To make limoncello, soak the zest of 15 lemons\n" +
"for 30 days in 1 liter of 100 proof vodka.\n" +
"Mix in 1 liter of cool sugar syrup made by cooking\n" +
"1 liter sugar in 1 liter water for 5 min.\n" +
"Add 1 more liter vodka, soak for 30 more days, and\n" +
"strain out into clean storage bottles."); }
else if (item.equals("Salsa")) {
"To make salsa, wash 3 lbs ripe tomatoes and dice.\n" +
"Add 3 minced jalapeno peppers, 1 bunch fresh cilantro\n" +
"also minced, 2 minced peeled onions, juice of 2 lemons,\n" +
"and 1 teaspoon salt."); }
else recipeTextArea.setText("Unknown choice");