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

The AppletInitialFocusTest1.java is unstable

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b19
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: