public GraphCanvas newGraphCanvas(boolean focus, boolean withID) {
GraphCanvas newGraphCanvas = new GraphCanvas(this.engine);
this.graphCanvases.add(newGraphCanvas);
this.graphTabbedPane.addTab(newGraphCanvas.getWorkflow().getName(), newGraphCanvas.getSwingComponent());
final int index = graphTabbedPane.getTabCount()-1;
TabLabelButton tabLabelButton = new TabLabelButton(graphTabbedPane,"Close this workflow");
graphTabbedPane.setTabComponentAt(index, tabLabelButton);
tabLabelButton.setCloseButtonListener(new ActionListener(){
@Override
public void actionPerformed(ActionEvent e) {
removeGraphCanvasFromIndex(index);
}
});