import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;

public class AnimatedGifTest extends Application
{
  @Override
  public void start(Stage stage)
  {
    WebView webView = new WebView();
    WebEngine engine = webView.getEngine();

    engine.loadContent(
      "<html><body>" +
      "<p>The image below should be animating:</p>" +
      "<img src=\"file:///D:\\Incidents\\Webbugs\\JI-9079847\\Rotating_earth.gif\"/>" +
      "</body></html>");
    stage.setScene(new Scene(webView, 600, 400));
    stage.setTitle("Animated GIF Test | JavaFX version "+System.getProperty("javafx.version"));
    stage.show();
  }

  public static void main(String[] args)
  {
    launch(args);
  }
} 