Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Wait untill the form is closed  RSS feed

 
Florin Florentin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I want to wait for a frame to be closed.

I am in the Catalog frame wich is waiting untill the AddCar form is closed.

catalog form :




the problem is that isn't working, the program is trying to show the add car form but it get blocked.
 
Campbell Ritchie
Sheriff
Posts: 53750
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you have an infinite loop. You need to get rid of that.

You would probably need a WindowListener; we usually discuss them on the Swing forum, so I shall move you there.
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A similar problem has been posted a little time ago, and I have posted two possible solutions in that. One of them was change the form from a JFrame to a modal JDialog.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!