A fabric simulator in Java