Some simulations and drawings in Java