By default, databody cells in a table or crosstab are not editable, but you can unlock them so that they are editable in a Java-client table or crosstab. You can also change the color of editable and read-only cells to be different from one another so that users can distinguish between them easily.
CellEditingAllowed
propertyThe following line of code shows how to unlock crosstab databody cells so that users can edit them.
crosstab.setCellEditingAllowed(true);
The following code sample shows how to set the background color of the editable cells in a crosstab to blue.
crosstab.getDatabody().getViewStyle().setEditBackground(Color.blue);