Well, you can use, for example, this and this methods to convert your table model to other model. Perhaps, you might want to create a separate method for conversion.
Type: Posts; User: angstrem
Well, you can use, for example, this and this methods to convert your table model to other model. Perhaps, you might want to create a separate method for conversion.
And what is your question? How to invoke setmodel on a new model?
class Foo implements TableModel {
// Implement all the methods here
}
What's so difficult? Btw, I would recommend you to extend one of the default implementations of TableModel rather then...
You can explicitly override a class that implements TableModel. Or you can use anonymous classes.