hi developers ..
i was trying to embedd mozilla web browser inside my java application
but was not able to add it into the container please any one tell me
what i have to do to add this mozilla into my swing panel ... this is
the code that i had gone through ....
Mozilla mozilla;
GREVersionRange[] range = new GREVersionRange[1];
range[0] = new GREVersionRange("1.9.0", true, "1.9", false);
try {
File grePath = new File("D:\\xulrunner-1.9.0.2pre.en-
US.win32\\xulrunner\\bin");
Mozilla.getGREPathWithProperties(range, null);
LocationProvider locProvider = new
LocationProvider(grePath, grePath);
mozilla = Mozilla.getInstance();
mozilla.initialize(grePath);
mozilla.initEmbedding(grePath, grePath, locProvider);
} catch (FileNotFoundException e) {
System.out.println("greGREPathWithProperties cannot find a
GRE");
} catch (XPCOMException e) {
System.out.println("initEmbedding failed");
} catch (Exception e) {
System.out.println("Exception --->>");
e.printStackTrace();
}
http://developer.mozilla.org/en/docs/JavaXPCOM:Embedding_Mozilla_in_a_Java_Application_using_JavaXPCOM#Embedding
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding