Exception Exception

Hi all

I have a table model that extends DefaultTableModel. I need to delete some specific row or row. I got a ClassCastException, following is my code:

TableModel tModel = (TableModel)myModel// myModel extends DefaultTableModel

DefatulTableModel dtModel = (DefaultTableModel)tModel;

tModel.removeRow(0);// I choose row with index zero for testing purpose, and here are the exception occures

Any help will be appreciated, thank you in advance

jotnarta

[558 byte] By [jotnartaa] at [2007-11-27 0:19:57]
# 1
ClassCastException? That code won't even compile. If you have a runtime exception, you could at least post the actual code that is throwing the exception.
DrClapa at 2007-7-11 22:12:25 > top of Java-index,Java Essentials,Java Programming...