import java.awt.event.*;
import java.awt.*;

/**
 *
 *
 *
 *
 */

public class Help 
    extends WindowAdapter 
    implements ActionListener  
{
    protected Frame help;

    protected Label out;

    protected Button quit;

    protected Help() {

        help = new Frame("Help");
        help.setBackground(Color.black);
        help.setForeground(Color.white);
        help.addWindowListener(this);
        GridBagLayout gridbag = new GridBagLayout();
        help.setLayout(gridbag);
        GridBagConstraints c = new GridBagConstraints();
        c.weightx = 0.1;
        c.weighty = 0.1;

        out = new Label("UNDER CONSTRUCTION");
        out.setFont(new Font("Times", Font.BOLD, 30));
        c.gridwidth = GridBagConstraints.REMAINDER;
        c.anchor = GridBagConstraints.CENTER;
        c.gridx = 0;
        c.gridy = 0;
        gridbag.setConstraints(out, c);
        help.add(out);

        quit = new Button("Quit");
        quit.addActionListener(this);
        quit.setFont(new Font("Times", Font.BOLD, 30));
        quit.setBackground(java.awt.Color.red);
        quit.setForeground(java.awt.Color.black);
        c.gridwidth = GridBagConstraints.REMAINDER;
        c.gridx = 0;
        c.gridy = 1;
        gridbag.setConstraints(quit, c);
        help.add(quit);

        help.pack();
        help.setSize(600,500);
        help.show();
    }

    public void actionPerformed(ActionEvent evt) {
        String command = evt.getActionCommand();
        if (command.equals("Quit")) {
            help.dispose();
        }
        
    }

    public void windowClosing(WindowEvent event) {
        help.dispose();
    } 
    
    public static void main(String[] args) {
        new Help();
    } 
} 


