I have a question
The teacher asked us for a this code
Using Exception Handling, allow only numeric values to be entered for the dimensions of the shape. If the user enters a non-numeric value, a popup window (i.e., another frame) should appear with a suitable error message displayed in a large font (use JLabel for this message). Make the popup window block input in the original frame until it is closed.
The proplem is where to put the try/catch thing ?
if I put it in the main the compile says it's empty string
sp I moved it to method actionPerformed
it worked but the conainer for the new frame is empty ! although I put Jlabel in it
can you help me ?