// An applet produced by copying most of the code of the PopMenuProg program.
// Barry Cornelius, 20 June 2000
import java.awt.    BorderLayout;
import java.awt.    Container;
import javax.swing. JApplet;
import javax.swing. JFrame;
import javax.swing. JMenuBar;
import javax.swing. JScrollPane;
import javax.swing. JTextArea;
import javax.swing. JTextField;
public class PopMenuApplet extends JApplet
{
   public void init()
   {
      final int tJFrameX = 100;
      final int tJFrameY = 100;
      final int tJDialogX = 100;
      final int tJDialogY = 200;
      final Pop tPop = new PopImpl();
      final JFrame tJFrame = new JFrame("PopMenuApplet");
      final JTextField tResultsJTextField = new JTextField();
      final JTextArea tLogJTextArea = new JTextArea(5, 30);
      final Container tContentPane = tJFrame.getContentPane();
      tContentPane.add(tResultsJTextField,             BorderLayout.CENTER);
      tContentPane.add(new JScrollPane(tLogJTextArea), BorderLayout.SOUTH);
      final PopMenu tPopMenu =
            new PopMenu(tJFrame, tPop, tJDialogX, tJDialogY, 
                        tResultsJTextField, tLogJTextArea);
      final JMenuBar tJMenuBar = tPopMenu.getJMenuBar();
      tJFrame.setJMenuBar(tJMenuBar);
      tJFrame.setLocation(tJFrameX, tJFrameY);
      tJFrame.pack();
      tJFrame.setVisible(true);
   }
}
