swing - Java Open GUI and wait until its closed -


i'm trying open gui , wait until jframe closed. heard jdialog don't know how use actual code:

gui gui = new gui(); gui.show(); // creates jbuttons, jlabels, , show jframe. 

now wait until jframe closed, don't know how continue.

can me please?

you can this:

  • inherit jdialog instead of jframe.
  • call setmodalitytype(modalitytype.application_modal) make dialog modal.
  • if use jframe(layoutmanager) constructor, have call setlayout() set layoutmanager instead.
  • when done dialog, call setvisible(false) or dispose continue program.

ps: next time should post working code exposes problem.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -