HText and STB MHP

Hi, I'm trying this code

String miTexto = "Este es un texto bastante largo.\n" +

"El Text Layout Manager soporta varias lineas " +

"de\ntexto si est醤 separadas " +

"por un \\n";

Font miFuente = new Font("Tiresias",Font.PLAIN,35);

DVBTextLayoutManager manejador = new DVBTextLayoutManager();

HText miHTexto = new HText(miTexto,

miFuente,

Color.yellow,

Color.green,

manejador);

miHTexto.setBounds(80,40,500,200);

miHTexto.setVisible(true);

panel.add(miHTexto);

panel.setVisible(true); //panel is a container

scene.add(panel);

scene.add(this);

scene.setVisible(true);

But I don't see the green rectangle in the screen, I only see the text. In XletView I see the green rectangle and I don't see the text.

Any ideas?

Thanks

[861 byte] By [leireurrizaa] at [2007-10-3 3:00:43]
# 1

Hi, I'm trying this code

String miTexto = "Este es un texto bastante largo.\n" +

"El Text Layout Manager soporta varias lineas " +

"de\ntexto si est醤 separadas " +

"por un \\n";

Font miFuente = new Font("Tiresias",Font.PLAIN,35);

DVBTextLayoutManager manejador = new DVBTextLayoutManager();

HText miHTexto = new HText(miTexto,

miFuente,

Color.yellow,

Color.green,

manejador);

miHTexto.setBounds(80,40,500,200);

miHTexto.setVisible(true);

panel.add(miHTexto);

panel.setVisible(true); //panel is a container

scene.add(panel);

scene.add(this);

scene.setVisible(true);

But I don't see the green rectangle in the screen, I only see the text. In XletView I see the green rectangle and I don't see the text.

Any ideas?

Thanks

leireurrizaa at 2007-7-14 20:50:20 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
Hi,Try to set the background mode on your HText:miHTexto.setBackgroundMode(HVisible.BACKGROUND_FILL);
Nonoa at 2007-7-14 20:50:20 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3
Hi NonoThanks for your reply, now it works fine.
leireurrizaa at 2007-7-14 20:50:20 > top of Java-index,Java Mobility Forums,Consumer and Commerce...