DefaultTableColumnModel -- what is it for?

  • Thread starter aloha.kakuikanu
  • Start date
A

aloha.kakuikanu

I have java.lang.ArrayIndexOutOfBoundsException: 1 >= 0
raised in javax.swing.table.DefaultTableColumnModel.getColumn
Nothing in the stack trace refers to any of the classes that I defined,
this is why I have no clue how to debug it. To further complicate the
issue, the error is not reproduced consistently. Next, there is no
ColumnModel class anywhere in my implementation; the only classes that
I defined are TreeTable, and TreeTableModel, and sure enough my
TreeTableModel defines more than 0 columns.

P.S. This stuff seems to be designed by dilletants. Check up javadoc;
what is the description of DefaultTableColumnModel? "Serialized
objects of this class will not be compatible with future Swing
releases" -- a warning that sits there for 10 years already?
 
R

Ralf Seitner

aloha.kakuikanu said:
I have java.lang.ArrayIndexOutOfBoundsException: 1 >= 0
raised in javax.swing.table.DefaultTableColumnModel.getColumn
Nothing in the stack trace refers to any of the classes that I defined,
this is why I have no clue how to debug it. To further complicate the
issue, the error is not reproduced consistently. Next, there is no
ColumnModel class anywhere in my implementation; the only classes that
I defined are TreeTable, and TreeTableModel, and sure enough my
TreeTableModel defines more than 0 columns.

P.S. This stuff seems to be designed by dilletants. Check up javadoc;
what is the description of DefaultTableColumnModel? "Serialized
objects of this class will not be compatible with future Swing
releases" -- a warning that sits there for 10 years already?
Hi!
I am not sure, if you really get away with calling the java designers
dilletants...
I you would have a look at the Java-API you saw the
DefaultTableColumnModel is used by JTable. So look your code for JTable...

bye, Ralf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top