That's what I was trying to get him to find for himself by stepping through it with a debugger or adding print statements. Ah well.
Type: Posts; User: KevinWorkman
That's what I was trying to get him to find for himself by stepping through it with a debugger or adding print statements. Ah well.
Ah, so it's a NullPointerException. Now your job is to figure out what's null in that line. It could either be jPanel1 or b[0], right? So what is the value of each? Are you sure? Step through it with...
You still haven't posted the actual error- what is the actual Exception? You also haven't used highlight tags, which makes your code pretty hard to read.
Hint: What is the value of each element of...
What line is the error on? What is happening on that line? Something must be null there- where do you initialize each of the variables you're dereferencing?