Antonio Teixeira
Member
Hello,
Starting to work with b4j and I am a bit confused.
I have labels, I define the width, height and wraping but it seems is not working.
My code is the following:
dim product as label
Product.Initialize("product")
Product.Style= "-fx-font:22 arial; "
Product.TextColor = fx.Colors.red
Product.SetSize(200,100)
Product.WrapText=True
Product.Text = "First line, secondline thirdline, fourth line and some more text"
MainForm.RootPane.AddNode(WrapLabel(Product,"BOTTOM_CENTER"),650,250,200,100)
On my screen the label is as large as the lenght of the line. No wraping. Not respecting the label size.
Any help please?
Thanks in advance
Starting to work with b4j and I am a bit confused.
I have labels, I define the width, height and wraping but it seems is not working.
My code is the following:
dim product as label
Product.Initialize("product")
Product.Style= "-fx-font:22 arial; "
Product.TextColor = fx.Colors.red
Product.SetSize(200,100)
Product.WrapText=True
Product.Text = "First line, secondline thirdline, fourth line and some more text"
MainForm.RootPane.AddNode(WrapLabel(Product,"BOTTOM_CENTER"),650,250,200,100)
On my screen the label is as large as the lenght of the line. No wraping. Not respecting the label size.
Any help please?
Thanks in advance