Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deprecated String constructor

 
Steve Chernyak
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic