log in emulator using swing in java