The testcase below shows that an empty JFrame with a KeyListener attached
doesn't receive key events and pass them on to that listener.
***TESTCASE***
import javax.swing.*;
import java.awt.event.*;
public class NoKeyEvents{
public static void main(String[] args) {
JFrame jd = new JFrame();
jd.addKeyListener( new KeyAdapter(){
public void keyPressed(KeyEvent e)
{
System.out.println ("hi");
}
});
jd.setSize(100, 100);
jd.show();
}
}
--
Summary: JFrames don't receive KeyEvents
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: swing
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: abalkiss at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24458
_______________________________________________
Bug-classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-classpath