for those who wondered what the problem was. The layout manager
"DirectedGraphLayout" did not finish his work, and therefor the window
was not updated instantly. Well I do not really know why it worked after
I clicked the mouse again, but there you go.