使用编辑器验证特定列中的用户输入文本

时间:2014-02-08 10:05:13

标签: java swing jtable

我不明白DefaultEditor是如何工作的??

我已阅读jtable教程,但它对我没有帮助。 有人可以为我解释如何为我的JTable中的特定列设置DefaultEditor,例如我希望第一列的值是Integer ...

table.getColumnModel().getColumn(1).setCellEditor(Integer.class, new IntegerEditor(0, 100));

我的问题是:找不到符号:class IntegerEditor!

0 个答案:

没有答案