If I use JDK1.8_40 or newer (Oracle or OpenJDK do the same), the following code together with a dialog resize will crash the application (tried Windows 7, x64, 64bit JDK)
Your Timer is not dispatching the Swing UI events on the Swing UI Thread. You need to "invokeLater" your runnable so it gets ran on the right thread.
Alternatively, you could have the timer execute a SwingWorker, with the done() method posting the event (it is guaranteed to be on the event dispatch thread)
A bit late with this answer, but the issue has been fixed.