Adding simulation infrastructure in Swing