Hi all,
I've got a JFrame in a program, and when I click on a button, I get another JFrame created, and then select from a list.
This works fine. But my problem is that when I close the second JFrame the entire program exits (both the main JFrame and the second JFrame).
I've tried the following commands:
JFrame.EXIT_ON_CLOSE
JFrame.DO_NOTHING_ON_CLOSE
JFrame.DISPOSE_ON_CLOSE
But no luck with the above. At least I'm not getting them to work. They all close the entire program.
Any help much appreciated.
Thanks,
Jorge