*/
public static Rectangle drawRectangle(JPanel form, int width, int height,
int startX, int startY, int penColor, int fillColor, int lineStyle,
int lineWeight, int contrastColor, int contrastPattern) {
setForm(form);
Rectangle rect = new Rectangle();
rect.setVisible(true);
if (lineStyle != -1)
rect.setLineStyle(lineStyle);
if (lineWeight != -127)
rect.setLineWeight(lineWeight);
if (penColor != 0)
ColourChange.setForeground(rect, penColor);
if (fillColor != 0)
ColourChange.setBackground(rect, fillColor);
java.awt.Point loc = location(startX, startY);