1

I am looking for a solution to make TextField Object gutter less such that the getBounds() and getColorBounds() give the same rectangle. In short the Rectangle returned by getBounds() must start from first character's left-most pixel and end at last character's right-most pixel.

4

1 回答 1

0

使用 textWidth 和 textHeigth 属性来做你想做的事,这些值正好包含你所需要的。

于 2013-04-10T06:39:00.380 回答