JTable and Custom Default Cell Editors  
Author Message
Erica Wheatcroft





PostPosted: 2005-1-21 21:57:00 Top

java-programmer, JTable and Custom Default Cell Editors
From: "Erica Wheatcroft" <email***@***.com>
Subject: JTable
Date: Thursday, January 20, 2005 4:17 PM

HI -

I have a jtable that uses two custom default cell editors to create combo
boxes for two of the the 4 columns. If the user selects another value from
either of the combo boxes i want to know that so i can indicate a save must
occur. I'm not sure what event i should listen to? Does any one have any
suggestions?

Thanks in advance.

Erica



 
John McGrath [TeamB]





PostPosted: 2005-1-22 1:36:00 Top

java-programmer >> JTable and Custom Default Cell Editors On 1/21/2005 at 8:56:43 AM, Erica Wheatcroft wrote:

> I have a jtable that uses two custom default cell editors to create combo
> boxes for two of the the 4 columns. If the user selects another value
> from either of the combo boxes i want to know that so i can indicate a
> save must occur. I'm not sure what event i should listen to? Does any
> one have any suggestions?

You need to add a TableModelListener to the JTable's TableModel.

--
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html