What are you talking about: a Java application, a Java Applet or a webpage with Javascript?