per completezza allora ho fatto in questo modo:

codice:
dc = new DocumenControl("\\d{0,4}",new JTextField());
			JTextField jtf= dc.getJtf();
			jtf.setDocument(dc);
			dce= new DefaultCellEditor(jtf);
			
			table.setDefaultEditor(Object.class, dce);

			table.setModel(ctm);			
			
			TableColumnModel tcm=table.getColumnModel();
			TableColumn tc=tcm.getColumn(0);
			tc.setCellEditor(dce);
			table.setColumnModel(tcm);
magari può chiarire il mio kaos