*
The moose likes Applets and the fly likes loading URL from applet (or referencing an applet in a control listener?) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "loading URL from applet (or referencing an applet in a control listener?)" Watch "loading URL from applet (or referencing an applet in a control listener?)" New topic
Author

loading URL from applet (or referencing an applet in a control listener?)

Grant Thawley
Greenhorn

Joined: Apr 07, 2011
Posts: 1

Hello people,

I have been working on an application in eclipse using the prefuse libraries. The Java application can open new browser windows by loading data from an xml file that contains the URL (by clicking on the relevant node and applying the label to the URL string). However when running as an applet the browserlauncher does not work. I understand you have to use getAppletContext().showdocument( url,), but I am unsure how to change the browserlauncher.showdocument to getappletcontext


My folder structure



Here is my applet code from TreeViewApp.java with a commented out (unrelated) example that opens a new window to google when launched.





Here is the relevant code section from treeview.java (what I really need the applet wrapper to do)




If anyone is interested in disscusing this further or helping me to work out how to use the AppletContext and use the showDocument() methods, that would be great. I am unsure how to reference the applet in my control listner. Please let me know if you require further information. here is the ap so far http://javatestsite.hostzi.com/greenhorn.html (it takes a while to load on this free server)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: loading URL from applet (or referencing an applet in a control listener?)
 
Similar Threads
How to launch a webpage from a browser from an application and an applet
open URL in specific frame.
Swings & HTML
Applet to Server(Urgent! Please help me)
security manager warning