This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

Posts: 1
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 with a commented out (unrelated) example that opens a new window to google when launched.

Here is the relevant code section from (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 (it takes a while to load on this free server)
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic