Hello,
I am working with Java, and I am trying to make a cell in JTable to be editable. My class implements TableModel and extends AbstractTableModel (so that I can use the method fireTableCellUpdated(rowIndex, columnIndex)), and I have implemented the methods isCellEditable() and setValueAt(). I represent a single cell in the table as an object of class Cell.
Now here is my problem: the cell is already editable, and when I click on it, the cursor appears in the cell, however, there appears also a string in the cell like this: Cell@1e63e3d. I delete this string and put in the cell the value, which I want to put, then click Enter and it works fine. But I want when I click on the cell there to appear nothing, an empty string, and not Cell@1e63e3d. And I don't know how to set this empty string as default and where.
My Cell class stores information (characteristics) about the cell like color of the cell, and its value as instance variables.
Thank you in advance, and please, tell me if you need more information.