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

Build 91 - Starting task manager causes an interruption of canvas drawing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • 8
    • 8
    • javafx
    • Windows 7, 64bit
      Java 8 b91
      Intel HD

    Description

      Just launched simple app ( attached )

      If I lauch task manager by Cntr+Alt+Delete, red circle dissappears.


      It worked fine on previous builds.


      PS.

      Can't see "attach file", so that's it...
      /////////////////////////////
      public class Main extends Application {

          Canvas canvas;

          final int W = 1200;
          final int H = 800;

          double x = 0;

          @Override
          public void start(Stage primaryStage) throws Exception{


              VBox root = new VBox();

              canvas = new Canvas(W, H);
              root.getChildren().addAll(canvas);

              Timeline t = TimelineBuilder.create().keyFrames(new KeyFrame(Duration.ZERO), new KeyFrame(Duration.INDEFINITE)).build();

              t.currentTimeProperty().addListener(new ChangeListener<Duration>() {
                  @Override
                  public void changed(ObservableValue<? extends Duration> observableValue, Duration duration, Duration duration2) {

                      GraphicsContext gc = canvas.getGraphicsContext2D();

                      gc.setFill(Color.BLACK);

                      gc.fillRect(0, 0, W, H);

                      gc.setFill(Color.RED);

                      gc.fillOval(x, 300, 100, 100);

                      x += 1.0;
                  }
              });

              t.playFromStart();

              primaryStage.setTitle("Hello World");
              primaryStage.setScene(new Scene(root, W, H));
              primaryStage.show();
          }


          public static void main(String[] args) {
              launch(args);
          }
      }

      ///////////////////////////

      Attachments

        Issue Links

          Activity

            People

              jandrese Joe Andresen (Inactive)
              atyukpiekjfx Anatoliy Tyukpiekov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: