This week's book giveaway is in the NodeJS forum. We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line! See this thread for details.
Campbell Ritchie wrote:There are better ways to get a number than option pane, which is very old‑fashioned. Try a Scanner instead.
You could, but Steven's original post mentions a "GUI" class. To me that suggests that there's some Swing code -- and the existence of an actionPerformed(ActionEvent) method makes that even more likely. However this would make a JOptionPane also, how can I put this, not the right sort of thing to do.
If there's supposed to be something about pencil-breaking in the design then the GUI should reflect that feature via standard GUI controls.