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

The AppletInitialFocusTest1.java is unstable

XMLWordPrintable

    • b19
    • generic
    • generic

        The test may fail from time to time on the fast systems.

        The test assumes that the code below will trigger the focus event on the button2 immediately after setVisible(), but the window can become visible really fast before button2.requestFocus(); is called, so temporarily the button1 will get a focus for a small moment.

                add(button1);
                add(button2);
                setVisible(true);
                button2.requestFocus();

              serb Sergey Bylokhov
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: