Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

corrupted db.db file?  RSS feed

 
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: 17309
11
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!