MAWT: owned Window can't be focused

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P3
    • None
    • Affects Version/s: 6
    • Component/s: client-libs
    • x86
    • linux

      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);
          }
      }
      -------------------------------------------------------------------

            Assignee:
            Sergey Bylokhov
            Reporter:
            Anton Tarasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: