On 09/11/06, Alexandre Leclerc <[EMAIL PROTECTED]> wrote:
Implementing java looks overkill... I just don't know where to start.
I downloaded mozilla source. There is a folder for java-sun. I also
checked out http://javaplugin.sourceforge.net/ to have a look.
Did anyone started the java applet interface? (Because I would at
least know where to continue...) My personnal needs are only to start
the applet inside the panel with init stuff. Then kill the applet when
required. Further interraction could be made later. But the JavaVM
stub, etc. is quite a monster to work with.
You wouldn't be working with the JavaVM, only the Java dll that needs
to be in the Mozilla plugins directory. Obviously the system would
need the Java Runtime installed, as that is what the Java .dll needs.
Look at how the Flash and Acrobat support was done. You would do the
same for Java.
Example:
* Create a JavaApplet.inc file.
* Create a class descending from TMozPluginPanel
* Implement the other (applet specific) properties a Java Applet
would require.
Look at what properties you need to specify in a html file to get a
applet to work, and implement those.
TJavaApplet = class(TMozPluginPanel)
private
...
public
constructor Create(AOwner : TComponent); override;
procedure LoadJava;
procedure UnLoadJava;
published
property Active;
property PluginName;
property PluginPath;
property CodeBase...
property Archive <-- maybe for .jar files
...
end;
Regards,
- Graeme -
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives