listba/ProjectAutograph — pull request #20 by coxry (2012-04-13 03:47:29+00:00)
Title: I fixed a bug where new graphs were not displaying properly

setPreferredSize says what the size should be and sets the size after a certain number of ticks in swings UI thread.. You want to use setPreferredSize but you also need to know where to draw the nodes when you load in a new tab.

You could probably use SwingUtilities.invokeAndWait but my solution is simpler: Assume you know what size it is and don't query the panel for the size.