Used google API's to translate the text from swing application.