import java.awt.*; import java.awt.event.*; public class HelpWindow extends WindowAdapter implements ActionListener { /** Frame for changing any options during the game */ protected static Frame helpwindow; /** Says what the options are and stuff */ protected static Label helplabel; protected HelpWindow() { helpwindow = new Frame("Help"); helpwindow.setLayout(new FlowLayout()); helpwindow.addWindowListener(this); helplabel = new Label("No help for now.."); helpwindow.add(helplabel); helpwindow.pack(); helpwindow.show(); } // HelpWindow(); public void actionPerformed(ActionEvent evt) { String command = evt.getActionCommand(); } public void windowClosing(WindowEvent event) { helpwindow.dispose(); } // windowClosing(WindowEvent) }