• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JFormattedTextField and Extra Spaces

 
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!