Changed order of assignments in setSwingParameters