Using JFrame to show the lenth and size of a shape.