Java TV - Problem with DVBTextLayoutManager
Hi all. First all sorry my english. I'm new at Java and MHP, and i trying to make a ticker for tv...
I have problems with DVBTextLayoutManager. When i add to scene HText without the manager, i saw the text, but when i try to use the manager, i saw the area indicated y htext and manager, but text is not displayed. I use xletview to see results. I have following the instructions of interactive web, and this is the code:
public void paint(Graphics g) {
//g.setColor(new Color(255,0,0,200)); // Elegimos color rojo con nivel de transparencia (red, green, blue, alpha )
//g.fillRect(0,535,700,30); // Creamos un rectangulo en la parte inferior
g.setColor(new Color(255,255,255,255)); // Color blanco sin ninguna transparencia
g.fillRect(650,535,70,30); // Creamos otro rect醤gulo en el extremo derecho a continuacion del primero
manager = new DVBTextLayoutManager();
manager.setLineSpace(23);
manager.setHorizontalAlign(manager.HORIZONTAL_CENTER);
manager.setVerticalAlign(manager.VERTICAL_CENTER);
texto_linea = new HText(" "+leer_archivo(), new Font("Tiresias", Font.PLAIN, 18), Color.white, Color.blue, manager);
texto_linea.setBounds(0, 535,650, 30);
System.out.println(texto_linea);
System.out.println(text);
scene.add(texto_linea);
scene.add(this);
Thanks all

