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

[1373 byte] By [RafaTorresa] at [2007-11-26 23:02:23]
# 1

i dont know weather this would help you .

I created an object of HTextLook Class and used the showLook() to render the text. before doing that you have to set the TextLayout which can be done using HDefaultTextLayoutManager or DVBTextLayoutManager depending on your need.

This link can also help u

http://forum.java.sun.com/thread.jspa?threadID=5130913&tstart=0

Regards,

Pundit

ps:Let me know the results

Message was edited by:

pundit

pundita at 2007-7-10 13:52:49 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
I will try your solution.With HDefaultTextLayout works, and i supose the reason will be the exposed in the link you post.Thanks.Sorry my english
RafaTorresa at 2007-7-10 13:52:49 > top of Java-index,Java Mobility Forums,Consumer and Commerce...