A Java project that studies electromagnetic forces