I dont put the code.... XD
--
public void initXlet(XletContext xletcontext) throws XletStateChangeException
{
parameters = (String[])xletcontext.getXletProperty("javax.tv.xlet.args");
context = xletcontext;
HSceneFactory factory = HSceneFactory.getInstance();
HSceneTemplate hst = new HSceneTemplate();
hst.setPreference(4, new HScreenDimension(1.0F, 1.0F), 1);
hst.setPreference(8, new HScreenPoint(0.0F, 0.0F), 1);
rootContainer = factory.getBestScene(hst);
Rectangle scenedim = rootContainer.getBounds();
NORMAL_DIMENSION = new Rectangle(0, 0, scenedim.width, scenedim.height); // establece las dimensiones normales de la pantalla cuando se ve a pantalla completa
System.out.println("Ancho del video: " + scenedim.width);
System.out.println("Alto del video: " + scenedim.height);
QUARTER_DIMENSION = new Rectangle(scenedim.width / 2, 0, scenedim.width / 2 , scenedim.height / 2 - 10); // establece las proporciones reducidas de la capa de video
rootContainer.setLayout(null);
resizeVideo(NORMAL_DIMENSION, QUARTER_DIMENSION);
HContainer ContPubli = new HContainer(0,0,720,576);
Image imagen1 = loadimage("cabecera.png");
HStaticIcon hStaticIcon1 = new HStaticIcon(imagen1);
hStaticIcon1.setBounds(40, 40, imagen1.getWidth(null), imagen1.getHeight(null));
ContPubli.add(hStaticIcon1);
rootContainer.add(ContPubli);
ContPubli.setVisible(true);
rootContainer.setVisible(true);