Also I recommend you to read the next article - http://go4idm[dot]blogspot[dot]com/2009/08/authenticating-javafx-application-using[dot]html. I hope you'll find answer for your question.