summaryrefslogtreecommitdiff
path: root/TAO/examples/Simulator/DOVEBrowser/DOVEBrowser.java
blob: d1bd7cf43388595cf5114364da4b07a02683b901 (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
52
53
54
55
56
// $Id$
// 
// = FILENAME
//    NewDemo.java
//
// = AUTHOR
//    Michael Kircher (mk1@cs.wustl.edu)
//
// = DESCRIPTION
//   Entry point for the demo.
//
// ============================================================================


import java.awt.*;

public class DOVEBrowser  extends java.applet.Applet {

  DemoCore demoCore_;
  static String nameServiceIOR_ = null;
  
  public DOVEBrowser () {
    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 ("No NameSerivce IOR: Will use Name Service Lookup Protokol.");
	}

    demoCore_ = new DemoCore (nameServiceIOR_, this);   
    demoCore_.show ();
    demoCore_.run ();
  }

  public void paint (Graphics g) {

    g.drawString ("Michael is here",10,10);
  }
  
  
  public static void main (String[] args)
    {      
      if (args[0] == "-ORBnameserviceior") {
		nameServiceIOR_ = args[1];
      }
      
      DOVEBrowser doveBrowser = new DOVEBrowser();
      doveBrowser.init ();
    }  
}