This discussion is archived
3 Replies Latest reply: Sep 12, 2012 3:24 AM by 833245 RSS

masking the value of a cell in a JTable

833245 Newbie
Currently Being Moderated
Hi
I have JTable object which contains 2 columns (name and value). I want to create a table like below.

Name Value
-------------------
host 12.21.23.12
port 2009
user root
password *****


JTable only allows adding an Object[][] as a row. Now how do I mask the values of the password only such that it does not appear and on the user keyed value is also stored in the tablemodel.

Thanks
BK

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points