//******************************************************************************
// -----------------------------------------------------------
// tmin_JS.java		                 				  
// -----------------------------------------------------------
// Comments : Sample LiveConnect 
// -----------------------------------------------------------
// Author : R. BERTHOU
// E-Mail : rbl@berthou.com
// URL    : http://www.berthou.com
// -----------------------------------------------------------
// 1.00 * R.BERTHOU  * 01/06/99 * 
//******************************************************************************

 // Importations
 import java.awt.Graphics ;
 import java.awt.Event ;

 // LiveConnect... for JavaScript
 import netscape.javascript.JSObject;

 public class tmin_JS extends java.applet.Applet {

     // Initialisation de l'applet
     public void init() {                       

     }

     // Dessiner l'applet
     public void paint(Graphics g) {             // Methode paint()
          // On dessine l'image a la position 5/10
          g.drawString("tmin started...", 5, 5) ;
     }

     public boolean mouseDown(Event e, int x, int y) {
	   try {
		JSObject.getWindow (this).eval ("javascript:alert('tmin_JS click x=" + x + " y=" + y + "')") ;
	   }
	   catch (Exception ex) { 
		showStatus( "Error call javascript err=" + ex );
	   }
	   return true ;
     }

  }

