View Full Version : How to dynamicly resize field's label in a form layout ?

14 Oct 2011, 6:09 AM
I have a form that contains fields with labels that can dynamicly be changed.
I'm using the TextMetrics class to get the max width needed for the labels, but I can't find a way to reflect the

formLayout.setLabelWidth(computedSize); into the panel.

What is the way to have the label to adapt to the new size in the view ?

19 Oct 2011, 11:45 AM