# TextField Woes

**URL:** <https://forum.kirupa.com/t/textfield-woes/146614>\
**Category:** Uncategorized\
**Created:** [May 2, 2005, 10:09pm UTC](https://forum.kirupa.com/t/textfield-woes/146614 "2005-05-02T22:09:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![massfrequency](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/massfrequency/32/1287_2.png) [@massfrequency](https://forum.kirupa.com/u/massfrequency)\
**Post date:** [May 2, 2005, 10:09pm UTC](https://forum.kirupa.com/t/textfield-woes/146614/1 "2005-05-02T22:09:29Z")

</div>

is there anyway to get the x coordinate of teh caret w/ in a text field… i know of Selection.getCaretIndex() … but this simply returns the character value by which the caret is located…

and i know you could try to derive a formula using Selection.getCaretIndex() to estimate the x value… however this will not work with different fonts… any ideas???
