This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!