• 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: 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!