Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

how to catch the mouse event when the table cell is just in the edit state?

Thread view: 
cl - 14 Feb 2006 06:56 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.