// Layout is a bit stupid
LayoutTarget target = new BasicLayoutTarget(gc);
LevelLayout staticLayout = new LevelLayout(target);
staticLayout.setOrientation(LevelLayout.HORIZONTAL);
staticLayout.layout(layoutGraph.getRoot());
pane.repaint();
}
});
} catch (Exception e) {
System.out.println(e);
}