Yeah not having LWJGL as an applet but rather adding some applet to it.
I have this ongoing quest of getting video playback to work properly; now Cortado is an applet that plays theora.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| public class VideoPlayerCortado extends JFrame { private Cortado cortado;
public VideoPlayerCortado() { cortado = new Cortado(); cortado.setBounds(0, 0, this.getWidth(), this.getHeight()); cortado.setVisible(true); cortado.init(); cortado.restart();
this.getContentPane().add((Panel)cortado);
setIgnoreRepaint(true); cortado.doPlay(); } .. } |
Deleted everything thats not important: This is how I add an applet to a JFrame.
Can I add an applet to a LWJGL Display, and if so, how ?