Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
/**
*
*/
package de.tutorials;
import java.net.URL;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
/**
* @author Tom
*/
public class AnimatedGifExample extends JFrame {
public AnimatedGifExample() {
super("AnimatedGifExample");
setDefaultCloseOperation(EXIT_ON_CLOSE);
try {
ImageIcon imageIcon = new ImageIcon(new URL(
"http://theorie.physik.uni-wuerzburg.de/~lemartin/animation/animation.gif"));
add(new JLabel(imageIcon));
} catch (Exception e) {
e.printStackTrace();
}
pack();
setVisible(true);
}
/**
* @param args
*/
public static void main(String[] args) {
new AnimatedGifExample();
}
}