Create RoundRectangle2D with GeneralPath
can i create a RoundRectangle2D.Double with GeneralPath?GeneralPath rec = new GeneralPath();rec .moveTo(0, 100);rec .lineTo(0, 0);rec .lineTo(100, 0);rec .lineTo(100, 100); rec .lineTo(0, 0);
[273 byte] By [
dr1234] at [2007-9-30 23:20:16]

You can create a general path which has an outline of a round rectangle, but it won't be an object of the class RoundRectangle.
The easiest way is
new GeneralPath(new RoundRectangle.Double(x, y, w, h, rx, ry));
Pete
Thanks, do you think i can do it like this?If yes how?GeneralPath rec = new GeneralPath();rec .moveTo(0, 100);rec .lineTo(0, 0);rec .lineTo(100, 0);rec .lineTo(100, 100); rec .lineTo(0, 0);