Through using google to figure out problems i've noticed this site a handful to times and I've found it to be very helpful, so i figured i would register.
On to my question.
I'm trying to initialize 3 x 3 array of JPanels with nested enhanced for loops, but it's not working.
Edit: sorry for the vagueness. It doesn't seem to be working because i'm getting a null pointer exception in another part of my program. Which means that the loop doesn't even seem to be going anywhere. each panel is just ending up "null" after the loop. I'll debug this and try to see what exactly it is doing and come back with another edit or a reply if i figure it out. Sorry i didn't do this before, i only had about 5 minutes left in the class i was in.
This code works, but it looks terrible, haha, and i'm sure it's bad practice, but i'm new to programming in general, not just java. I know there's probably a more concise way to do this with for loops.