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

corrupted db.db file?

 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I�ve built a JTAble(notice that I�m new with swing :confused to recover db.db file information using the following code:

and in the view I see strange caracters on the following fields:
Carrier
Price
Duration
Available seats
Am I doing something wrong?
Is my db.db file corrupted?

Tx in advance,
Marcos Maia.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No your db.db file isn't corrupted, and when you read the data you aren't trimming it so that is why you see those boxes.
In your Data class' readRecord method you have changed the deprecated method and create a new String. If you look at the String class you might find a method there that you can use to trim the boxes out.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic