File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Java 1.6 focus returning problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Java 1.6 focus returning problem" Watch "Java 1.6 focus returning problem" New topic

Java 1.6 focus returning problem

Lepi Johnny

Joined: Sep 04, 2009
Posts: 3
Hi people! This is my first post here, and i am sorry if i duplicated topic, i couldn't find answer.

After migrating from jre-a 1.5.0_07 to jre 1.6.0_10 , a problem appeared in my app : after i close JDialog, focus is returned to JButton which i used to open JDialog, and this was not the case before. Any hints what went wrong, and how can i fix it?
All the best!

Sorry for my bad english
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2447
That sounds like the proper behaviour to me, so I don't think it needs fixing.

Of course you don't say what happend before, so I can't even give you a suggestion on how to manually implement it.
Lepi Johnny

Joined: Sep 04, 2009
Posts: 3
I think that, before, focus was lost, if that is the propper term (no component had focus after closing the dialog), but i am not sure. I am sure that JButton wasn't geting the focus, and i want to keep it that way
I agree. Here's the link:
subject: Java 1.6 focus returning problem
It's not a secret anymore!