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

Animation blocks event thread.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • fx2.1
    • javafx
    • None
    • b12
      linux x64
      java -version
      $java version "1.6.0_32-ea"
      Java(TM) SE Runtime Environment (build 1.6.0_32-ea-b02)
      Java HotSpot(TM) Server VM (build 20.7-b01, mixed mode)

      In the code below, the event queue is blocked (no "Yep!" in the output) but ONLY if mouse is over an animated control (such as interpolator) when the app starts.
      If mouse is somewhere else, or after you move it out of an animated component, execution continues.

          public static void main(String[] args) throws InterruptedException {
              new Thread(new Runnable() {

                  @Override
                  public void run() {
                      Application.launch(Ensemble2.class, new String[0]);
                  }
              }, "FX app launch thread").start();

              Thread.sleep(1000);
              Platform.runLater(new Runnable() {

                  public void run() {
                      System.out.println("Yep!");
                  }
              });
          }

            mheinrichs Michael Heinrichs (Inactive)
            shurailine Aleksandre Iline
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: