Trouble with DefaultCellEditor

Hi,

The program uses a JTable for data input. The table should have 20 rows and these data types in each row.

int | double | double

I've used AbstractTableModel to setup which cells are editable and the way the cols data is displayed.

Now I need one-click cell edit for both TAB or mouse-click. I mean, when the user hits TAB to go to the next cell, or mouse click over some cell, it should edit it instead of selecting it. Also it should remove the previous contents of the cell instead of appending the new data.

I've tried using DefaultCellEditor's setClickCountToStart() method but it didn't work out. Can anyone give me some advice?

Thanks in advance.

P.S. sorry for my english.

[737 byte] By [Shibby44a] at [2007-11-27 10:43:32]
# 1

In the future, Swing related questions should be posted in the Swing forum.

This posting should help you:

http://forum.java.sun.com/thread.jspa?forumID=57&threadID=580410

camickra at 2007-7-28 20:00:58 > top of Java-index,Java Essentials,Java Programming...
# 2

Thanks. I'll keep that in mind.

Shibby44a at 2007-7-28 20:00:58 > top of Java-index,Java Essentials,Java Programming...