always when i try to get the width of an Array in Java it just returns 0 and i dont know why. Can somebody explain to me how it is done right?
I don't think the width will be calculated until the Label is shown: add it to a Parent that is visible and you should get a non-zero result.