Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / Simulator / DOVEBrowser / DOVEBrowserApplet.java
blobfd90ebf032832b010c4530fe81bbd157232a9a6b
1 //
2 // = FILENAME
3 // DOVEBrowserApplet.java
4 //
5 // = AUTHOR
6 // Michael Kircher (mk1@cs.wustl.edu)
7 //
8 // = DESCRIPTION
9 // Entry point for the demo when started inside an applet.
11 // ============================================================================
14 import java.awt.*;
16 public class DOVEBrowserApplet extends java.applet.Applet {
18 DemoCore demoCore_;
19 static String nameServiceIOR_ = null;
21 public DOVEBrowserApplet () {
22 super ();
25 public void init () {
26 // in case of an applet use the following line, else not!
27 nameServiceIOR_ = this.getParameter ("NSIOR");
29 if (nameServiceIOR_ == null) {
30 System.out.println ("The DOVE Browser cannot run, because no Naming Service IOR was found!");
31 return;
34 demoCore_ = new DemoCore (nameServiceIOR_, // name service IOR
35 null, // name service port
36 null, // args
37 false, // don't use queueing
38 this); // pointer to the applet
39 demoCore_.show ();
40 demoCore_.run ();