'Generates a label with all the parameters required for such
Sub AddLabel(labelobject As Label, panelobject As Pane, Params As LabelParams)
labelobject.Initialize("")
labelobject.TextColor = fx.Colors.From32Bit(Params.TextColor)
CSSUtils.SetBackgroundColor(labelobject, fx.Colors.From32Bit(Params.Color))
CSSUtils.SetStyleProperty(labelobject, "-fx-text-alignment", "center")
labelobject.Text = Params.Text
labelobject.WrapText = False
Dim jo As JavaObject = labelobject
jo.RunMethod("setTextAlignment", Array("CENTER"))
labelobject.TextSize = Params.TextSize
Log(CSSUtils.GetStyleProperty(labelobject, "-fx-text-alignment"))
panelobject.AddNode(labelobject, Params.Left, Params.Top, Params.Width, Params.Height)
End Sub