How to add a Jpassword field in a JTable My application requires the need for the creation of a new user. So the new user window appears in a jtable ,having the columns as user name and password.so my doubt is how to add Jpassword field to the JTable.
Example: Code: JPasswordField password = new JPasswordField(); password.setBorder( new LineBorder(Color.BLACK) ); TableCellEditor editor = new DefaultCellEditor( password ); table.getColumnModel().getColumn(1).setCellEditor( editor );