package test;

import game.help.Help;
import com.sun.java.swing.*;
import java.awt.*;
import java.awt.event.*;


public class TestHelp extends JFrame {
  Help help;
  JButton helpButton;
  JButton exitButton;

  public static void main(String args[]) {
    TestHelp test = new TestHelp();
  }

  public TestHelp() {
    super();
    getContentPane().setLayout(new FlowLayout());

    // Add help
    help = new Help();
    helpButton = new JButton("Help");
    getContentPane().add(helpButton);
    helpButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        help.view("test.html");
        help.show();
      }
    });

    exitButton = new JButton("Exit");
    getContentPane().add(exitButton);
    exitButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.exit(0);
      }
    });
    setSize(200,80);
    show();
  }
}