By jroyce
via mycodepage.blogspot.com
Published: Sep 21 2006 / 11:00
If you want to open a second JFrame from your main JFrame and then be able to close it with a button click, here is how this can be done. But be sure not create a second instance of your Class or you won't be able to reference the second JFrame when you need to close it.
Comments
jroyce replied ago:
I got a reply on my blog from someone recommending the use of a JDialog instead of opening a second frame. This would have been a more standard approach to the problem.
gk75330 replied ago:
I hate to be negative, but is this newsworthy? Is it a fresh link for developers?
daniel replied ago:
Flat out, this is pretty much standard Swing stuff. Nothing really unique here.
jroyce replied ago:
Ok, ok. Maybe a beginner Java forum would have been more appropriate...
Voters For This Link (8)
Voters Against This Link (0)