JDialog not in front of parent anymore after switching to other program and back
I have a JFrame with a button that opens a modal JDialog. So when the JDialog is open, I cannot do anything with the main JFrame. However, when the JDialog is open and I switch to another program, e.g. Firefox, and click back on the program icon in the statusbar, only the modal JDialog is showing.
I want the JDialog showing in front of the main JFrame.
How can I fix this?
Re: JDialog not in front of parent anymore after switching to other program and back
I had to set the owner of the JDialog boxes. Now when I have set the owner to be the JFrame, the JFrame is showing behind the JDialog boxes when I switch to another program and back.