Posted Wednesday, December 31, 1969 @ 23:59:59
You have to implement your own cell renderer/editor to acheive this. Please refer to the documention of CellComponent for this.
The following example shows how to implement a cell reneder/editor for this. When the user tries to edit the cell , it shows the images & a small button nearby, clicking on the button it will show the File dialog, which can be used to select the file which the user wants to change to. I haven't tested the code yet. This is just to give a idea.
class ImageCellRenderer extends JLabel implements CellComponent
{
private String path ="":
public void setValue(Object value)
{
path = (String) value;
setIcon(new ImageIcon(path) );
//handle the case if null is passed
}
public Object getValue()
{
return getPath()
}
}