• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

deprecated String constructor

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For FBN i have to change the deprecated String constructor in the readRecord method of the Data class.
As far as i can see the string value that is created as a result of this constructor needs to be trimmed for two reasons:
1. The JTable will add boxes to the string value if the value.length is less then the field length.
2. The criteriaFind method will not find results where one of the criterias values.length is less then the field length.
My question:
Is it ok to trim the value in the readRecord method or should i trim the value in the find criteria method and when loading the JTable
Thanks, Steve
reply
    Bookmark Topic Watch Topic
  • New Topic