Originally posted by Jon Parise:
Suggestions would be most appreciated.
Originally posted by Jon Parise:
I have never used a JTable, so I pretty much didn't know it existed.
I'll read up on the API about it, it seems like it will do the trick.
Originally posted by Jon Parise:
I think i got it. Is there any reason not to use the following:
Originally posted by Jon Parise:
I have implemented my own TableModel that extends AbstractTableModel. I defined my data as a Vector of Vectors to make it dynamically grow. I know it's ugly but I wanted it to be able to grow.
Also it is driving me crazy that it is giving me a warning about using unchecked or unsafe operations.
I think this line is the problem:
private Vector<Vector> data = new Vector(cols);
Originally posted by Jon Parise:
The compiler doesn't like
Vector<Vector<Object>> data = new Vector<Vector<Object>>(cols);