• 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

Prob w/ JPasswordField behavior inside JTable

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a JTable with a custom TableModel, and a column of JPasswordField created with a TableCellEditor ... The password field behaves correctly when I am editing it, but otherwise displays plain text instead of the encrypted password. BTW, I am using 1.5.

anyone know what the problem could be? Do I need to use a renderer??

thanks,
Sherry Nelson
SCJP
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

you can return class of that column as JXXX.class or u can write renderer for that column which have passwordTextField as a component.

Regards,

Premal Panchal
 
reply
    Bookmark Topic Watch Topic
  • New Topic