For a greater challenge, first prompt the user to enter the size of the new square. In order to get this to work, you’ll need to add a JTextField to the panel where a user can type the size they wish …
For a greater challenge, first prompt the user to enter the size of the new square. In order to get this to work, you’ll need to add a JTextField to the panel where a user can type the size they wish to use. The JTextField has not been provided for you – where should it go? How will you access it?
OR