If by "in a site" you mean on a web page then it needs to be written as a Java applet, and referenced in the HTML source code by a line like:
CODE
Although that might be an old outdated way of doing it; I don't know if there's a better alternative around now...