TableCellEditor (final TemplateVariable variable) { if (variable.isHidden()) { return new AbstractTableCellEditor() { private JPasswordField myPasswordField; @Override public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { myPasswordField = new JPasswordField(variable.getValue()); return myPasswordField; } @Override public Object getCellEditorValue() { return myPasswordField.getText(); //NON-NLS } }; } return super.getEditor(variable); }