JDK-6494382 : MAWT: owned Window can't be focused
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: x86
  • Submitted: 2006-11-16
  • Updated: 2020-11-01
  • Resolved: 2020-11-01
Related Reports
Relates :  
Description
Run the testcase below. You'll see a Frame with an owned Window. Try to click
the Window's button with the SPACE. Then click the Frame and return back to the Window.
Now the Window's button can't be activated with the keyboard.

-------------------------------------------------------------------
import java.awt.*;
 
public class Test {
    static Frame frame = new Frame("Test Frame");
    static Window window = new Window(frame);

    static Button frameButton = new Button("button");
    static Button winButton = new Button("button");
 
    public static void main(String[] args) {
        frame.setBounds(0, 0, 200, 200);
        frame.add(frameButton);        

        window.setBounds(300, 0, 160, 160);
        window.add(winButton);

        frame.setVisible(true);
        window.setVisible(true);
    }
}
-------------------------------------------------------------------

Comments
mawt/Mtoolkit was removed.
01-11-2020

EVALUATION Looks like the proxy mechanism works wrong for owned windows. When an owned Window gets focused the proxy of its owned should be focused but this is not the case. Instead the proxy of an owned Window (that I think should not take place at all) receives FocusIn.
12-03-2007

EVALUATION The bug appeared since mustang b35. So, I suspect 4931668 "Need to implement server side support for XEmbed" integrated in that build.
16-11-2006