public BasicStrokeEditorMenu(BasicStroke bs) { if (bs != null) { basicStroke = bs; } else { basicStroke = new BasicStroke(1f); }  setStrokeWidth(basicStroke.getLineWidth()); setMiterLimit(basicStroke.getMiterLimit()); setDash(basicStroke.getDashArray()); setDashPhase(basicStroke.getDashPhase()); setEndCaps(basicStroke.getEndCap()); setLineJoins(basicStroke.getLineJoin());  setBasicStroke(basicStroke);
public BasicStrokeEditorMenu() { this(new BasicStroke(1f));
    public BasicStrokeEditorMenu(BasicStroke bs) {        if (bs != null) {            basicStroke = bs;        } else {            basicStroke = new BasicStroke(1f);        }        setStrokeWidth(basicStroke.getLineWidth());        setMiterLimit(basicStroke.getMiterLimit());        setDash(basicStroke.getDashArray());        setDashPhase(basicStroke.getDashPhase());        setEndCaps(basicStroke.getEndCap());        setLineJoins(basicStroke.getLineJoin());        setBasicStroke(basicStroke);    }