Maybe consider using something more modern than applets?

Otherwise there's an official solution now.