
import java.awt.*;
import java.applet.*;
import box;

public class mbox extends Applet
{
    box msgBox;
    Button button;
    String ButtonName, Boxtitle;
    String Title, Author, Update;

    public void init()
    {
        setBackground(Color.black);
        setForeground(Color.white);
        Title = getParameter("Title");
        Author = getParameter("Author");
        Update = getParameter("Update");
        Boxtitle = ("Information about " + Title);

        ButtonName= getParameter("ButtonName");
        add(button = new Button(ButtonName));
    }

    public boolean action(Event evt, Object arg)
    {
        if(arg.equals(ButtonName))
        {
            msgBox = new box(this, Title, Author, Update, this);
            msgBox.setBackground(Color.white);
            msgBox.setTitle(Boxtitle);
            msgBox.resize(300,200);
            msgBox.show();
            return true;
        }
        return false;
    }

    public void gemacht(String Name)
    {
        System.out.println("Na???? "+ Name);
    }


}

