• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using JDialog... need help please  RSS feed

 
Tempora Telora
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written 2 classes. First class calls the second class that extends JDialog. This class will then spawn a window that has a few radio buttons and a sumbit and cancel button.

I have everything coded up but when I launch the jbInit(), which returns a boolean value, from my main class it executes before the sumbit or cancel button is selected. I need hte main class to wait until the submit or cancel button is selected.

Could anyone show me an example or explain how this would work?

Thanks,
Randy
 
Petrus Pelser
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you starting the JDialog as a separate thread? If yes, then you should use the join() method to have the main class wait for the JDialog execution to complete.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!