Results 1 to 2 of 2
Like Tree2Likes
  • 2 Post By Heatryn

Thread: JDialog not in front of parent anymore after switching to other program and back

  1. #1
    Heatryn is offline Member
    Join Date
    Jun 2012
    Posts
    10
    Rep Power
    0

    Default JDialog not in front of parent anymore after switching to other program and back

    Hi everyone,

    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?

  2. #2
    Heatryn is offline Member
    Join Date
    Jun 2012
    Posts
    10
    Rep Power
    0

    Default Re: JDialog not in front of parent anymore after switching to other program and back

    Found it.

    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.
    Fubarable and DarrylBurke like this.

Similar Threads

  1. pass data from Jdialog back to jFrame
    By Rogue45 in forum AWT / Swing
    Replies: 4
    Last Post: 04-05-2012, 01:35 AM
  2. Replies: 1
    Last Post: 12-20-2011, 03:05 PM
  3. Replies: 0
    Last Post: 11-30-2011, 06:46 PM
  4. Data Exchange Format between Web Front End and Web Back End
    By jeanjiang in forum Reviews / Advertising
    Replies: 0
    Last Post: 06-25-2011, 02:37 PM
  5. posting results back to parent page
    By carag in forum New To Java
    Replies: 0
    Last Post: 07-29-2009, 01:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •