// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   BoggleCustomDialog.java

import java.awt.Dialog;
import javax.swing.*;
import javax.swing.text.JTextComponent;

public class BoggleCustomDialog extends JDialog
{

    public BoggleCustomDialog(JFrame jframe, String s, String s1, String s2)
    {
        super(jframe, true);
        input = null;
        retValue = null;
        setTitle(s);
        JTextField jtextfield = new JTextField(s2, 8);
        jtextfield.selectAll();
        Object aobj[] = {
            s1, jtextfield
        };
        optionPane = new JOptionPane(((Object) (aobj)), 3, 2);
        setContentPane(optionPane);
        optionPane.addPropertyChangeListener(new  Object(jtextfield, this)     /* anonymous class not found */
    class _anm1 {}

);
    }

    public String getInputText()
    {
        return input;
    }

    public int getRetValue()
    {
        if(retValue instanceof Integer)
            return ((Integer)retValue).intValue();
        else
            return -1;
    }

    public void resetButtons()
    {
        optionPane.setValue(JOptionPane.UNINITIALIZED_VALUE);
    }

    private String input;
    private JOptionPane optionPane;
    private Object retValue;





}
