jframe - Blocking frame switch with Java -


i block frame switch request of user in java application; example:

i have main frame full size , setup frame smaller size (400,400 example). while setup frame opened wouldnt let user acess main frame, can if closes setup frame.

that might 1 duplicated question , i'm sorry that, couldnt find specific term research want, try "window focus on java" think researching in wrong direction..

thanks in advance help

the best solution use modal dialog. if not option, have create handler fires whenever frame gets focus , checks if right frame. if not, handler must focus on important frame.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -