my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes removeRow() in AbstractTableModel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "removeRow() in AbstractTableModel" Watch "removeRow() in AbstractTableModel" New topic

removeRow() in AbstractTableModel

Jhedzkie Skies
Ranch Hand

Joined: Oct 28, 2009
Posts: 118
I am using another class in populating my table... having AbstractTableModel means no removeRow()...
here's my code...

i called it as actionPerformed on a JPopupMenu...

and it doesnt work...
i got these results...

Exception in thread "AWT-EventQueue-0" java.lang.Error: java.lang.reflect.InvocationTargetException
at org.jdesktop.application.ApplicationAction.actionFailed(
at org.jdesktop.application.ApplicationAction.noProxyActionPerformed(
at org.jdesktop.application.ApplicationAction.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$Handler.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(

please help guys.... thanks in advance...
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2446
Not really sure what you are doing but here is my standard solution:

Table From Database
I agree. Here's the link:
subject: removeRow() in AbstractTableModel
It's not a secret anymore!