Code that results in UI interaction needs to be invoked on the EDT.