public void actionPerformed(ActionEvent arg0) {
			if(arg0.getSource() instanceof JCheckBox) {
				JCheckBox source = (JCheckBox) arg0.getSource();
				if(source.getText().equals("Enable Gravity")) {
					gravityDelay.setEnabled(source.isSelected());
					gravityLabel.setText(source.isSelected()?
							String.format("Gravity Delay: %d ms", gravityDelay.getValue()):"");
					model.setGravity(source.isSelected());
				} else if(source.getText().equals("Enable Autoscroll")) {
					model.getView().setAutoscroll(source.isSelected());
				} else if(source.getText().equals(refresh.getText())) {
					fpsStatus.setEnabled(refresh.isSelected());
					model.getView().setRefreshing(refresh.isSelected());
				}
			}
			model.getView().refreshView();
		}