Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

JFormattedTextField and Extra Spaces

Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic