• Post Reply Bookmark Topic Watch Topic
  • New Topic

WebApplet integration in SWT application  RSS feed

 
Diego Guidi
Greenhorn
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
frame.add(this.viewer);
// config applet parameters...
this.viewer.init();
this.viewer.start();

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
Boost this thread!