destroyXlet() question
Hi, I've a little problem, I can't see the video (elementary stream) when I destroy my xlet. I've two classes, one implementsXlet interface and thedestroyXlet method I've implemeted is:
publicvoid destroyXlet(boolean unconditional)throws XletStateChangeException
{
if (unconditional)
{
if (escena !=null)
{
escena.setVisible(false);
HSceneFactory.getInstance().dispose(escena);
escena.dispose();
escena =null;
}
else
{
thrownew XletStateChangeException("Por favor, no me dejes morir!");
}
}
}//destroyXlet()
In the other class I implementKeyListener interface and in tehkeyPressed method I put:
publicvoid keyPressed(KeyEvent e)
{
switch(e.getKeyCode())
{
case 3:
{
contexto.notifyDestroyed();
break;
}
}
wherecontexto is a variable defined in the first class that I pass as argument from the first class to the second one:
public XletContext contexto;
It seems that the xlet dies ok because I can start another time the application pressing application button (OK button inmy case). But I would like to see video stream and no a black screen when the application is destroyed.
Anay ideas? Thanks in advance

