Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet only works with appletviewer

 
Warren Lasiuk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have never come across this problem before:
I created an applet and tested it successfully in the "appletviewer". However, when I try to view it in a browser (MS IE5), before initializing, the following exception gets thrown:
exception: java.lang.NegativeArraySizeException
I only use three arrays, and they are initialized at the beginning of the "init()" method.
 
Sheela Balagopal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
during the use of the array you by mistake might be trying to access the array by the wrong subscript
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic