public void drawSquare()
    {
        String lenString = "";
        while (true)
        {
            lenString = JOptionPane.showInputDialog(null, null, ENTERSIDE, JOptionPane.QUESTION_MESSAGE);
            if(null == lenString)
            {
                break;
            }
            else if(lenString.equals(""))
            {
                JOptionPane.showMessageDialog(null, BADSIZE, null, JOptionPane.OK_OPTION);
            }
            else
            {
                break;
            }
        }
        if(null != lenString)
        {
            Integer len = null;
            try
            {
                len = Integer.parseInt(lenString);
            }
            catch (NumberFormatException nfe)
            {
                nfe.printStackTrace();
            }
            if(null != len)
            {
                myCanvas.setImage(myCreator.makeSquare(len));
            }
        }
    }