This applet simulates various magnetic sources, including a line of current, a square loop, a magnetic sphere and a solenoid. Size, number of particles, and field strength are adjustable. Display options include particles in velocity or force fields, field vectors, field lines and potential vectors. The vectors and lines can be displayed in 3D or on a movable 2D slice. Charge can be reversed. Source code and directions are included.