EventTableModel and editable columns

15 views
Skip to first unread message

Einar Sørheim

unread,
Nov 22, 2010, 9:21:14 AM11/22/10
to JavaBuilders
I have been using javabuilder for a couple of months and have one
specific question regarding the EventTableModel:

I want to have one of the columns editable, have tried the following:

JTable(name=tcw):
-
EventTableModel(name=resultModel2,source=coolwater, writable=[false
true false])
-
TableColumn(name=tcw1,source=time,headerValue=Time [sec])
-
TableColumn(name=tcw2,source=length,headerValue=Length [mm])
-
TableColumn(name=tcw3,source=value,headerValue=Water [m3/hour])

I get no errors but it does not take into account the "writable=[false
true false]", any ideas of how to achive this?
I have also tried to set the Celleditor like this:

JTable(name=tcw):
-
EventTableModel(name=resultModel2,source=coolwater, writable=[false
true false])
-
TableColumn(name=tcw1,source=time,headerValue=Time [sec])
-
TableColumn(name=tcw2,source=length,headerValue=Length [mm])
- JTextField(name=nm)
-
TableColumn(name=tcw3,source=value,headerValue=Water [m3/hour])

but no effect.
Regards
Einar
Reply all
Reply to author
Forward
0 new messages