• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call applets out of browser

 
Graziani Gabriele
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, is there a way to call an applet out of a browser
For example in applications using Swing components like viewers?
Thanks
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An applet is just a Component. You can simply create an instance of it and add it to any Container, and for many applets, it will just work.
For applets that call methods that go through the AppletStub, however (getDocumentBase(), getCodeBase(), etc.) you'll need to provide an AppletStub implementation of your own. Implement the interface, and use setStub() to install it in the Applet. You might need to implement an AppletContext, too.
You should probably Google around for ready-made implementations -- I'm sure there are several available.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic