TableCellRenderer (TemplateVariable variable) { if (variable.isHidden()) { return new TableCellRenderer() { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { return new JPasswordField(value.toString()); //NON-NLS } }; } return super.getRenderer(variable); }