Spurious calls to setValueAt with JTables in Java 7 on OS X Lion?

前端 未结 3 577
天涯浪人
天涯浪人 2020-12-19 09:23

After upgrading to Lion, and Java 7, I am running into issues with JTables. When I use arrow keys to move the selection around, its calling setValueAt() with em

3条回答
  •  佛祖请我去吃肉
    2020-12-19 09:42

    A workaround for this is to use:

    putClientProperty("JTable.autoStartsEdit", Boolean.FALSE);
    

    But in this case you will not be able to start editing in a cell by direct typing. You will have to use the mouse to start editing. I have also issued a bug to Oracle http://bugs.sun.com/view_bug.do?bug_id=9006933 but it is also not available... seems they are having a problem with the system.

提交回复
热议问题