public void actionPerformed(ActionEvent e) { if (e.getSource() == updateButton) { camera.zoom = Integer.parseInt(zoomField.getText()); } }