textAreaTool.setRubberbandColor(Color.BLACK); textAreaTool.setToolDoneAfterCreation(true); btn = ButtonFactory.addToolTo(this, editor, textAreaTool, "createTextArea", labels);
ButtonFactory.addToolTo(tb, editor, new CreationTool(new SVGTextFigure(), attributes), "edit.createText", drawLabels); TextAreaCreationTool tat = new TextAreaCreationTool(new SVGTextAreaFigure(), attributes); tat.setRubberbandColor(Color.BLACK); ButtonFactory.addToolTo(tb, editor, tat, "edit.createTextArea", drawLabels);