/* Scrabble : An interactive scrabble playing software. Copyright (C) 1999 Amitabh Sinha All Trademarks and Copyrights pertaining to Scrabble, Java, Linux acknowledged. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Contact Amitabh at */ import java.io.*; import java.util.*; import java.awt.*; import java.awt.event.*; import java.lang.*; public class HelpFrame implements ActionListener { Frame frame = new Frame ("Scrabble Help"); Button okButton = new Button ("Ok"); public HelpFrame () { Panel buttonPanel = new Panel (); buttonPanel.add (okButton); okButton.addActionListener (this); frame.setLayout(new BorderLayout()); Panel messagePanel = new Panel(); messagePanel.setLayout(new GridLayout(14,1)); messagePanel.add(new Label("Place your letters on the board one by one.")); messagePanel.add(new Label("Click on a letter from your tiles. When it")); messagePanel.add(new Label("disappears, move cursor to the square you ")); messagePanel.add(new Label("want to place it, and click.")); messagePanel.add(new Label("")); messagePanel.add(new Label("Play : Click when you have fully placed your word")); messagePanel.add(new Label("Change : Click to change your 7 tiles")); messagePanel.add(new Label("Quit : To exit game")); messagePanel.add(new Label("Restore: If you have partly played a word but")); messagePanel.add(new Label(" decide you dont want to play it, or if")); messagePanel.add(new Label(" you've made a mistake, click Restore")); messagePanel.add(new Label("Help : This window")); messagePanel.add(new Label("Finish : Twice the remaining points are subtracted")); messagePanel.add(new Label(" from each player's score. Game over.")); frame.add("North", messagePanel); frame.add("South", buttonPanel); frame.pack(); frame.setVisible(true); } public void actionPerformed (ActionEvent a) { if (a.getActionCommand().equals("Ok")) { frame.dispose(); } } }