import java.awt.*; import java.applet.*; import java.awt.event.*; public class ReactionApplet extends Applet implements ActionListener { private ReactionFrame reactionFrame; private Button startButton; public void init() { setBackground(Color.white); startButton = new Button("Start Program"); startButton.addActionListener(this); add(startButton); } public void actionPerformed(ActionEvent e) { if (e.getSource()==startButton) { startButton.setEnabled(false); reactionFrame = new ReactionFrame(startButton); } } }