Improve Window to take an input number and report its square, using the JOptionPane dialogues. Use a message box to report the result.
Include exception handling just as we eventually did for the non-GUI Squarer (Exercise 10).