Fix: events should happen in JavaFX thread.

Apparently JavaFX complains if events trigger from elsewhere. Using
Platform.runLater() should alleviate this issue. As a downside, you do
lose control over *when* it will actually run. Hope it happens fast
enough.