JTable's cell double click question...
Hello everyone,
My JTable has some cells with icons and text, and some contains only text.
All cells are editable, so double clicking on it goes to "edit mode" where user enters new value for the cell.
Here is my question: Can I somehow determine if user has clicked on an icon?
What I'm trying to do is to put additional information for cell (some comment), and if comment exists, icon will appear.
Double clicking on that icon, dialog will show that comment.
Thanks in advance!
[525 byte] By [
Toxtera] at [2007-10-3 8:57:01]

> > How about just using a tool tip?
>
> Can't do that, comment should be editable
> so that dialog will not be read only.
You did not mention that before. You said:
>Double clicking on that icon, dialog will show that comment.
If you want to make it editable you use JOptionPane or create your own JDialog to provide a way for the user to edit the text.
>...
> You did not mention that before. ...
You are absolutely right, I didn't.
Let me emphasize importance of this:
Can I somehow determine if user has clicked on an icon?
And when I said "clicked" I mean double click when entering edit mode
of a cell.
If I could somehow determine that, I could than
perform desired action (open a dialog, or something else).
Thank you for your help so far.