Remove test dependency on Swing