Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
/**
*
*/
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();
}
}