Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Array Index Out of Bounds internal frame

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an internal frame that opens inside a main window. When a button is clicked on the internal frame, I setVisible(false) and open a new internal Frame. Then when I close the second one I setVisible(true) on the first one. Then if I do it again, without restarting the program I get an Array index out of bounds error on my dos window, but the program does not terminiate, and I can continue on. Does anyone know why this happens or is there some error catching or code cleaning I need to do to keep the Array from going out of bounds??
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't give enough info to help. Maybe some code snippets.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never Mind. I figured it out. Thanks anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic