I have a gwt button that has a fixed size.
I want to present a text on it, and if that text exceeds the button length, I need to cut it short and put "..." in the end. I use the following code now:

```
if(name.length() > 11){
    //limiting the size of the text presented on the button
    name = name.substring(0,10)+"...";
}

```

I have a list of such buttons, and this approach causes that not all button's text have the same size.

The problem is, for example, that 10 chars of "!" are much shorter than 10 chars of "A".

Can anyone help me with a way to solve this issue?

Thanks!