draw a Rectangle2D on a JPanel