i had setModal at a JDialog at top of a Frame. But everytime when i open others program and back to maximise the frame of that Java program, the JDialog box will be gone. Only after i click the Alt+Tab key, the JDialog will pop up back. Otherwise only the JFrame will show but can't even close. Can somebody know why ?
I remember having the same problem a while ago, and I think the problem went away after making sure that the "owner" parameter of the constructor correctly referred to the parent dialog or frame. It's usually enough to use "this" in the constructor call (but this depends on what the class of the caller is): new JDialog(this, "My dialog", true);
"teeming" your name is not in accordance with the javaranch guidelines. Please take a moment and re-register after selecting a valid name. you can find the guidelines at http://www.javaranch.com/name.jsp thanks for your cooperation. - satya
Take a Minute, Donate an Hour, Change a Life