So I am making a simple test program and I have added two buttons at the bottom of the JFrame to go forwards and backwards between questions. This is done by having a static int