The link below is for a Processing sketch I created which uses a quadtree data structure and allows the user to change the ball (moving object) size and configure some of the quadtree factors.
You might like to try it.
QuadTreeDemo
It requires the G4P library to be installed, can be done through the Contributions Manager