The Artima Developer Community
Sponsored Link

Java Answers Forum
an interesting swing focus question

2 replies on 1 page. Most recent reply: Dec 17, 2004 3:40 AM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Fred Brent

Posts: 2
Nickname: zzaazzaazz
Registered: Oct, 2004

an interesting swing focus question Posted: Oct 29, 2004 12:45 PM
Reply to this message Reply
Advertisement
Hi,

I have a JFrame that pop-ups a JDialog that has focus. I run into trouble when the user clicks on another application that he\she is running and then clicks back on the JFrame.

Unfortunately, the JFrame comes up on top of the JDialog, even though the JDialog has focus. To the user, it looks like the application is locked up. He\she can see the JDialog again by minimizing all windows in front of it.

Has anyone ran into this before and know how to fix it? Thanks a bunch.


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: an interesting swing focus question Posted: Oct 30, 2004 12:52 AM
Reply to this message Reply
Did you set the frame as parentframe for the dialog? That should do the trick.

mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: an interesting swing focus question Posted: Dec 17, 2004 3:40 AM
Reply to this message Reply
for windows us ctrl+tab to see the other dialog.

Flat View: This topic has 2 replies on 1 page
Topic: creating a reset button Previous Topic   Next Topic Topic: Adding, removing, searching of an array

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use