I am using JTextField as a render for JTable. I wish to set a doumentfilter on that TextField.Plz help to slove this problem.
Below is the code i used for rendering.

class TextFieldRender extends AbstractCellEditor implements TableCellRenderer
    JComponent component = new JTextField();
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
        ((JTextField) component).setText((String) value);
        return component;
    public Object getCellEditorValue()
//Doc is my documentFilterClass  
        ((AbstractDocument)((JTextField)component).getDocument()).setDocumentFilter(new Doc());
        return ((JTextField) component).getText();

But document filter is not working ,,,