Hi,everybody
as the title, it's the problem i faced, when the cell is in the edit
state, then the mouse event i binded to this cell(as pop-up a dialog)
can't work, I don't what's the matter, otherwise, if I should change
the state from edit to render, and how to do?
regards,
pooricahrd
zero - 15 Feb 2006 20:39 GMT
"cl" <poorichard@gmail.com> wrote in news:1139900166.312498.31000
@f14g2000cwb.googlegroups.com:
> Hi,everybody
>
[quoted text clipped - 5 lines]
> regards,
> pooricahrd
Sounds like you need to add the same mouse listener to the editor. I
assume you're not using a custom editor?
Try something like this:
Component editorComp = table.getEditorComponent();
editorComp.addMouseListener(myMouseListener);
cl - 16 Feb 2006 02:06 GMT
Actually, the cell is a JButton, when pressed first, shows a
JInternalFrame, closed the InternalFrame, and press the Button again,
then no InternalFrame showed . So i think may the button is in Editor.
I will try your said.
thanks,
poorichard