Changed gridbagLayout to Loops, less code.