added swingEmulator