If I new a LabelField like this:
LabelField label = new LabelField("long longgggg long text");
it shows:
-----------------------
| long longggg |
| long text |
-----------------------
if I use label.getWidth(), it gives the width of:
| long longggg |
but what I need is the width of:
| long longggg
Any solution?
Check getPreferedWidth() to get length.
If you have applied any font than you need to get