Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFormattedTextField and Extra Spaces  RSS feed

 
Michael Bunch
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I am using a JFormattedTextField for the first time. I have used a series of asterisks to designate the number of characters that can be entered into the field. The problem is that there are that many spaces in the text field when users start typing into it. Thus, when they click in the text field to start typing, it places thier cursor in the middle of the field (i.e. wherever they clicked), instead of placing the cursor at the left most position in an empty text field like you would expect. Does anyone know of a fix for this or have any ideas on how I might address this issue. Thanks alot!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!