• 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

boxes in data

 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I am getting boxes in my JTable when I grab it from the Data class. I thought maybe this was from the depreciated ascii methods but even when I got rid of the depreciated methods, I still have the boxes in my table.
Also, on the getBytes() and new String() methods that take an encoding... are there some constants for those encodings? I am just letting it default to the the machine default for the moment.
Thanks in advance!
Nate
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try the .trim() method of the String class. use it in your readRecord method in the method that you fixed from being deprecated.
Mark
 
Nate Johnson
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
try the .trim() method of the String class. use it in your readRecord method in the method that you fixed from being deprecated.
Mark


Thanks Mark! That worked perfectly!
 
reply
    Bookmark Topic Watch Topic
  • New Topic