It is the same code, and the solution suggested above didn’t work.
I have managed to identify the problem. Using the version of JOGL from Release Builds 2003, or Release Builds 2004 -> 1.0 - April 12, results in all colours being red. This is everything including my project and the gears demo. Using the version of JOGL from Release Builds 2004 - 1.1b01 - April 21 and Later results in proper colours for everything, however my project doesn’t work properly (I just get a grey screen).
I suppose I will have to adapt my project so that it works with the later version. Why am I using such an old verison of JOGL you ask? Well because it’s a group project and I didn’t set it up.