Using applets to learn modern physics