@Override
    public void actionPerformed(ActionEvent ae)
    {
        if (ae.getSource() == okay)
            {
                userDimensions[0] = (Integer)rowsInput.getValue();
                userDimensions[1] = (Integer)colsInput.getValue();
                userOkay = true;
                setVisible(false);
            }
        else if (ae.getSource() == cancel)
            {
                setVisible(false);
            }
    }