posted 17 years ago
My program creates a JDialog as a child of a Frame. The JDialog gets some parameters from the user and the main Frame uses those to create an aquarium.
The problem is that the Aquarium is not waiting for the JDialog to finish, so it never gets the data. I wrote a workaround, but it feels like it is wrong.
isEmpty is set to false once submit is pressed.
Is there a better way to go about this? Thanks
"Computer science is no more about computers than astronomy is about telescopes" - Edsger Dijkstra