Gridbag variable declaration moved up