Transform transform = new Transform(device);
transform.translate((width - 250) / 4, height / 2 - 150);
gc.setTransform(transform);
transform.dispose();
path = new Path(device);
path.cubicTo(-150, 100, 150, 200, 0, 300);
if (closeButton.getSelection())
path.close();
if (fillButton.getSelection())
gc.fillPath(path);
if (drawButton.getSelection())