• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX:when/why does this happen???

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.ArrayIndexOutOfBoundException: 3 >= 2
at java.util.Vector.elementAt(Vector.java 427)
at javax.swing.table.DefaultTableColumnModel.getColumn....
 
Michael Couck
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi HaoZhe,
Your model only has two records in it and you are trying to access the third one. Put a little print line in to print out all the records when they are put in the model.
See ya
Michael
 
james airey
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would guess you have done something like
String[] bob = new String[3];
bob[3] = "Hello";
forgetting that arrays are numbered 0, 1, 2.
That's my guess.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic