Scrolling text in Vaadin?

Hi guys,

I need to do the Scroll the text contained label. I don’t know how to do this.
Please give any suggestion to do this? or any other easy way to do this?

My code is bellow :

String incomingUpdates =“Simple Marquee text”;
Label notification_lbl = new Label();
notification_lbl.setValue(" New arrivals : "+incomingUpdates);

HorizontalLayout notification_hl = new HorizontalLayout();
[/code]Thanks in Advance…!

try to use tags like the following example:

Label notification_lbl = new Label();
notification_lbl.setValue("New arrivals: <marquee>" + incomingUpdates + "</marquee>");

But it’s
not recommended:

The <marquee> element is obsolete and must not be used.
While some browsers still support it, it's not required.
In addition, using this element is basically one of the
worst things you can do to your users, so please, please don't do it.


Thanks Olli… You saved me. Its working…
Thanks again.

Small blessings… :slight_smile:

OMG! Chrome still supports the marquee-tag! blink doesn’t work, though