«« Next » « Previous
«« Next » « Previous

Link Details

Link 3619 thumbnail
User 205541 avatar

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.
  • 8
  • 0
  • 1251
  • 254

Comments

Add your comment
User 205541 avatar

jroyce replied ago:

3 votes Vote down Vote up Reply

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.

User 508 avatar

gk75330 replied ago:

0 votes Vote down Vote up Reply

I hate to be negative, but is this newsworthy? Is it a fresh link for developers?

User 107114 avatar

daniel replied ago:

0 votes Vote down Vote up Reply

Flat out, this is pretty much standard Swing stuff. Nothing really unique here.

User 205541 avatar

jroyce replied ago:

0 votes Vote down Vote up Reply

Ok, ok. Maybe a beginner Java forum would have been more appropriate...

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (0)