Hi!
I have a text Label. On a Label you can set the text with
Label.setText("Hello World")
and you can set the boundaries with
Label.setBounds(x,y,width,height).
Is there a way to determine, how much space the text of the label is going to take? I want to fit the bounds of the label to the size of the text. I.e. I would like to do something like:
Label.setBounds(x,y, LabelText.width, LabelText.height).