avevo intuito che il codice fosse questo

viene semplicemente creato un altro thread che eseguirà il flusso del metodo createAndShowGUI().