🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by Erica Wheatcroft Fri, 21 Jan 2005 13:56
JTable and Custom Default Cell Editors
#692
Author: Erica Wheatcroft
Date: Fri, 21 Jan 2005 13:56
16 lines
1448 bytes
From: "Erica Wheatcroft" <erica.wheatcroft@gmail.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
Re: JTable and Custom Default Cell Editors
#694
Author: John McGrath [TeamB]
Date: Fri, 21 Jan 2005 17:36
18 lines
1573 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads