Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Glenn Duncan   on Mar 18 In Java Category.

  
Question Answered By: Josie Roberts   on Mar 18

The caret position  wont change since you don't have a
value on settext and setcaretposition(0). The best way
to do this is do settext("this is the text") and
setcaretposition( 2) there you will see the
caretposition you had just set.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on setCaretPosition() with 1.4.2 Or get search suggestion and latest updates.


Tagged: