Why is java application running smoother when moving mouse over it? Video included

I'm working with tutorial from this site - "Fixed timestep" section. Here's the code - http://pastebin.com/QaHgcLaR import javax.swing.*; import java.awt.*; import java.awt.event.*; public class