It used to be that a single invokeLater was sufficient to get MIDI data to be performed after a window popped up: but on the Mac that appears to be no longer the case as of 1.8.0_371. So we need to do a double invokeLater, which seems to do the trick.
(Runnable run)
source not stored for this graph (policy: none)
no outgoing calls
no test coverage detected