exchanged obsolete GeneralPath with Path2D