United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6399303 Non-Focusble window steals focus from other applications.
6399303 : Non-Focusble window steals focus from other applications.

Details
Type:
Bug
Submit Date:
2006-03-16
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2006-05-03
Component:
client-libs
OS:
windows_xp
Sub-Component:
java.awt
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0u8

Related Reports
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
The problem is that we have a JFrame that is non-focusable but sometimes when it pops up it steals focus from other applications such as Word, Notepad, even from another instance of our own
application. When that happens it appears with a blue titlebar, however, you can't
tab around the window. It does not have a real focus since it is non-focusable but
the other application that was focused before loses the focus.. Once the JFrame
in this wierd state is closed the focus goes back to that other application from
which it was stolen. This is randomly reproducible. However, there is a problem that is
always reproducible which is when you click on a non-focusable frame while your focus is
on some other application such as Word, Notepad, even another java application, that other
application loses focus, while the non-focusable frame does not gain focus since it is
non-focusable. Once the non-focusable frame is closed, the focus goes right back to the 
application who previously owned it. We think that the first problem is a variation of the
second one.

                                    

Comments
SUGGESTED FIX

It's a partial backport of the fixes to 6181725, 5091224, 6384552.

See the webrev: http://sa.sfbay.sun.com/projects/awt_data/5.0u8/6399303
                                     
2006-11-09
EVALUATION

need to be addressed in u8
                                     
2006-03-16



Hardware and Software, Engineered to Work Together