Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6494382

MAWT: owned Window can't be focused

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serb Sergey Bylokhov
              Reporter:
              ant Anton Tarasov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: