I've been working on building an MS paint like program for a class, but I've just realize that the TA marks in Linux and I've been building my program on a Mac. I didn't think it was going to be a big deal, but I thought I'd test it on a linux anyways, and I'm getting errors that won't let me even open the program.
I'm getting "main" java.lang.ArrayIndexOutOfBoundsException: No such child: 0
thrown at frame.pack();
in my main method and all over the place in Container and JComponent, ect
and Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: No such child: 0
thrown at Container and JComponent and BorderLayouts.
I have no idea where the problem is, so I've just put the whole program up on pasteBin. I really have no idea what I've done and I don't have any idea how to fix it. This works 100% fine on my Mac. I don't understand what the difference between the operating systems are. If anyone could please help I really need it.