It puts ... because there's no room for the text. You can use bigger buttons or a smaller font but if you really want the dots gone use button.setEllipsisString(""); , but then you just get truncated text.
You can use any of the below either separately or in combination:
Apply CSS to use a very small font in the button.
Make the label text for the button very short.
Use brian's answer which proposes explicitly setting the ellipse string to empty.
Use a small graphic icon instead of text.
You can use setMinSize as documented above in all cases (if you wish the button not to go below a preferred size truncating or eliding content).
In all cases, if you wish, you can also apply CSS to minimize the padding between the label and button the border.
From your previous comment (I want to use simple captions like "<" and ">"), I think option 2 (Make the label text for the button very short) is what you want.
It puts ... because there's no room for the text. You can use bigger buttons or a smaller font but if you really want the dots gone use
button.setEllipsisString("");
, but then you just get truncated text.Don't let the button go below it's preferred size, then it will never need to elide the text of the button label:
You can use any of the below either separately or in combination:
You can use
setMinSize
as documented above in all cases (if you wish the button not to go below a preferred size truncating or eliding content).In all cases, if you wish, you can also apply CSS to minimize the padding between the label and button the border.
From your previous comment (I want to use simple captions like "<" and ">"), I think option 2 (Make the label text for the button very short) is what you want.
You may also be interested in Joel's Designing for People Who Have Better Things To Do With Their Lives which would indicate, usability-wise that very small buttons are usually a pretty bad idea.
in your label/button you can use the
textOverrun
property to turn off ellipsis.this is probably a bit late for you, so i am putting it here for lone wanderers digging up this question.