blob: 160eb3a363bbf108efa42ed23889671f899476c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// $Id$
//
// = FILENAME
// DOVEBrowserApplet.java
//
// = AUTHOR
// Michael Kircher (mk1@cs.wustl.edu)
//
// = DESCRIPTION
// Entry point for the demo when started inside an applet.
//
// ============================================================================
import java.awt.*;
public class DOVEBrowserApplet extends java.applet.Applet {
DemoCore demoCore_;
static String nameServiceIOR_ = null;
public DOVEBrowserApplet () {
super ();
}
public void init () {
// in case of an applet use the following line, else not!
nameServiceIOR_ = this.getParameter ("NSIOR");
if (nameServiceIOR_ == null) {
System.out.println ("The DOVE Browser cannot run, because no Naming Service IOR was found!");
return;
}
demoCore_ = new DemoCore (nameServiceIOR_, // name service IOR
null, // name service port
null, // args
false, // don't use queueing
this); // pointer to the applet
demoCore_.show ();
demoCore_.run ();
}
}
|