for (int j = 0; j < act.length; j++) {
if (act[j].equals(BarFactory.ACTION_SEPARATOR)) {
toolbar.addSeparator();
} else if (act[j].equals("SetSelectMode")) {
JaWEAction ja = new JaWEAction();
ja.setAction(new SetSelectMode(controller));
ja.setIcon(((GraphSettings) controller.getSettings()).getSelectionIcon());
ja.setLangDepName(controller.getSettings().getLanguageDependentString("SelectionKey"));
JButton b = BarFactory.createToolbarButton(ja, controller);
decorateToolboxButton(b, ja);
toolbar.add(b);