Remove dependency on Swing in Word