timeline: make sure dialog closed in swing thread
timeline: correct / cleanup javafx vs swing initialization code, previously causing threading issues