-
Bug
-
Resolution: Won't Fix
-
P3
-
1.4.2, 5.0, 6
-
generic
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2177574 | 5.0-pool | Unassigned | P4 | Closed | Won't Fix | |
JDK-2177573 | 1.4-pool | Unassigned | P4 | Closed | Won't Fix |
The bug is reproducible on Tiger and Mustang with XAWT.
To reproduce run the following test:
1. A Frame with a button will appear, click the button.
2. A Window (the Frame's owned) with a button will appear.
----------------------------------------
import java.awt.*;
import java.awt.event.*;
public class WindowTest {
public static void main(String[] args) {
Frame f = new Frame();
Button b = new Button("open window");
f.add(b);
f.pack();
final Window w = new Window(f);
w.add(new Button("button"));
w.pack();
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
w.setVisible(true);
}
});
f.setVisible(true);
}
}
------------------------------------------
If the button in the Window won't get focus, the bug is reproduced.
###@###.### 2005-07-05 13:26:47 GMT
To reproduce run the following test:
1. A Frame with a button will appear, click the button.
2. A Window (the Frame's owned) with a button will appear.
----------------------------------------
import java.awt.*;
import java.awt.event.*;
public class WindowTest {
public static void main(String[] args) {
Frame f = new Frame();
Button b = new Button("open window");
f.add(b);
f.pack();
final Window w = new Window(f);
w.add(new Button("button"));
w.pack();
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
w.setVisible(true);
}
});
f.setVisible(true);
}
}
------------------------------------------
If the button in the Window won't get focus, the bug is reproduced.
###@###.### 2005-07-05 13:26:47 GMT
- backported by
-
JDK-2177573 XAWT: Button in a Window doesn't get focus when the Window is shown
-
- Closed
-
-
JDK-2177574 XAWT: Button in a Window doesn't get focus when the Window is shown
-
- Closed
-