});
Action.getNamedActions().put("newText", new Action() {
@Override
public void perform(Component source) {
Text text = new Text();
text.setText("ABC");
text.setFont("Arial BOLD 24");
text.setFill(getSelectedColor());
text.setOrigin(getRandomLocation(text));
drawing.getCanvas().add(text);
}
});
}