B4J Code Snippet Multiline Labels Text Alignment

The standard Alignment property does not work properly with multiline labels. It aligns the content based on the first line.

You can use this code instead:
Dim jo As JavaObject = Label1
jo.RunMethod("setTextAlignment", Array("CENTER"))


Active Member
Thank you, that worked very well. I was wondering is there a listing of the (or a link to) of the various run methods, that I can look up for future use, so I don't have to bother anybody?