[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/25165] New: Swing components give up and reclaim focus improp
From: |
abalkiss at redhat dot com |
Subject: |
[Bug swing/25165] New: Swing components give up and reclaim focus improperly |
Date: |
29 Nov 2005 21:54:22 -0000 |
The simple testcase pasted below shows that Swing components that are already
focused are giving up and re-claiming focus when they're clicked on. Running
on the JDK shows that there should be no FOCUS_LOST or FOCUS_GAINED events
fired at all.
***TESTCASE***
import java.awt.event.*;
import javax.swing.*;
public class Focus
{
public static void main(String args[])
{
JButton b = new JButton();
b.addFocusListener(new FocusListener()
{
public void focusGained(FocusEvent e)
{
System.out.println ("g");
}
public void focusLost (FocusEvent e)
{
System.out.println ("l");
}
});
JFrame f = new JFrame();
f.setSize(300,300);
f.add(b);
f.setVisible(true);
}
}
--
Summary: Swing components give up and reclaim focus improperly
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: abalkiss at redhat dot com
ReportedBy: abalkiss at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25165
- [Bug swing/25165] New: Swing components give up and reclaim focus improperly,
abalkiss at redhat dot com <=
- [Bug swing/25165] Swing components give up and reclaim focus improperly, abalkiss at redhat dot com, 2005/11/30
- [Bug swing/25165] Swing components give up and reclaim focus improperly, abalkiss at redhat dot com, 2005/11/30
- [Bug swing/25165] Swing components give up and reclaim focus improperly, abalkiss at redhat dot com, 2005/11/30
- [Bug swing/25165] Swing components give up and reclaim focus improperly, cvs-commit at developer dot classpath dot org, 2005/11/30
- [Bug swing/25165] Swing components give up and reclaim focus improperly, abalkiss at redhat dot com, 2005/11/30
- [Bug swing/25165] Swing components give up and reclaim focus improperly, abalkiss at redhat dot com, 2005/11/30