Use java.awt.Point instead of my own inner class.