Hi.
I want to be able to set the width of a JLabel (or other component) so that a JLabel will be long enough to display the whole Text value.
If using a font where there is a fixed pixel width for each letter value, it would be easy to;
label.setWidth(myString.length()*3);
however, I'd like to use a font that doesn't have a fixed pixel width.
Is there a way to do this?