Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Prob w/ JPasswordField behavior inside JTable  RSS feed

 
Sherry Nelson
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
 
Premal Panchal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!