bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/26174] top-Level windows are unable to receive focus events


From: thebohemian at gmx dot net
Subject: [Bug swing/26174] top-Level windows are unable to receive focus events
Date: 21 Feb 2006 13:31:32 -0000


------- Comment #3 from thebohemian at gmx dot net  2006-02-21 13:31 -------
I traced the initial issue back to the root cause which is actually pretty
simple. When you register a FocusListener to a Frame or JFrame it will never
receive any events.

Changed title and unassigned from me because I have absolutely no clue on the
inner workings of AWT. :(

Some BeanShell code that demonstrates this:

f = new JFrame("Focus test");
f.setBounds(0,0,320,240);

f.addFocusListener(new FocusListener(){
        focusLost(fe)
        {
                System.out.println("focusLost");
        }

        focusGained(fe){
                System.out.println("focusGained");
        }
});

f.show();


-- 

thebohemian at gmx dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|thebohemian at gmx dot net  |unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW
            Summary|caret should stop blinking  |top-Level windows are unable
                   |when its component loses the|to receive focus events
                   |focus                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26174





reply via email to

[Prev in Thread] Current Thread [Next in Thread]