Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebApplet integration in SWT application

Diego Guidi
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have integrated an Applet in a simple SWT application.
I have created a class extending composite and i have added this code before initialization:

java.awt.Frame frame = SWT_AWT.new_Frame(this);
this.viewer = new TNwebViewer(); // my applet
// config applet parameters...

the applet works correctly, except one method: this method load images using "Applet.getImage(URL url)" method, and this method uses Applet.getAppletContext() for our works.

In my application getAppletContext() returns null because private field Applet.stub" is also null.

Any suggestions for resolve my problem?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic