Thanks rscheitlin,
The code I'm showing in my first post is pretty much what I have.
Anyway, I found my mistake. It's one of those, "copy/paste" mistakes...
The two line of code:
graphic = new Graphic(polyLine);
graphic.symbol = new SimpleLineSymbol(lineStyle.selectedItem.style, cpLine.selectedColor, numLineAlpha.value, numLineWidth.value);
should actually be:
graphic = new Graphic(rectangle);
graphic.symbol = new SimpleFillSymbol(lineStyle.selectedItem.style, cpLine.selectedColor, numLineAlpha.value, numLineWidth.value);
Hopefully someone else will benefit from this thread.
Greg