[jopendocument] setValueAt(Object val,int x,int y) crash ?

2011-03-03 Thread b.mard...@g2c.fr
Hello everybody !

I'm using the setValueAt(Object val,int x,int y) form
org.jopendocument.dom.spreadsheet.Table class for filling a existing
spreadsheet.

It's ok but after write the 36th value (so at the 37th one), java said
that he can't write in the spreadsheet with this message
java.lang.IndexOutOfBoundsException : Index 36, Size 36)

How can i solve the problem ?


Re: [jopendocument] setValueAt(Object val,int x,int y) crash ?

2011-03-03 Thread Guillaume Maillard
Hi,

Just be sure that the cell exists Cells in OpenOffice are 'virtual',
they are created when needed.

Regards,
Guillaume

2011/3/3 b.mard...@g2c.fr b.mard...@g2c.fr

 Hello everybody !

 I'm using the setValueAt(Object val,int x,int y) form
 org.jopendocument.dom.spreadsheet.Table class for filling a existing
 spreadsheet.

 It's ok but after write the 36th value (so at the 37th one), java said
 that he can't write in the spreadsheet with this message
 java.lang.IndexOutOfBoundsException : Index 36, Size 36)

 How can i solve the problem ?