File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Detecting changes in JTable cells Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Detecting changes in JTable cells" Watch "Detecting changes in JTable cells" New topic

Detecting changes in JTable cells

Pradeep Kadambar
Ranch Hand

Joined: Oct 18, 2004
Posts: 148

I am new to JTable. Here I have a Jtable with one of the columns having a editable JComboBox. How can I detect the entry made by the user.

Also a popup menu is availed to select a label. If selected the 1st column must show a icon. How can I detect this activity and set the corresponding icon.

jefff willis
Ranch Hand

Joined: Sep 29, 2004
Posts: 113
Your class should extend TableModelListener and override the tableChanged() method.
I agree. Here's the link:
subject: Detecting changes in JTable cells
It's not a secret anymore!