This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Array Index Out of Bounds internal frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Array Index Out of Bounds internal frame" Watch "Array Index Out of Bounds internal frame" New topic
Author

Array Index Out of Bounds internal frame

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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??


GenRocket - Experts at Building Test Data
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
You don't give enough info to help. Maybe some code snippets.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Never Mind. I figured it out. Thanks anyway.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Array Index Out of Bounds internal frame
 
Similar Threads
Java Result: 1073807364- Printed as Output when setting internal frame visible
JFrame vs JInternalFrame
threads for GUI and command-line
Deiconifying a Frame
Arrays - Exception error