1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

how to add JPassword field to a JTable

Discussion in 'Java' started by kavitha2007, Jan 4, 2007.

  1. kavitha2007

    kavitha2007 New Member

    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.
     
  2. pradeep

    pradeep Team Leader

    Example:
    Code:
    		JPasswordField password = new JPasswordField();
    		password.setBorder( new LineBorder(Color.BLACK) );
    		TableCellEditor editor = new DefaultCellEditor( password );
    		table.getColumnModel().getColumn(1).setCellEditor( editor );
    
     

Share This Page