//******************************************************************************
// -----------------------------------------------------------
// tipsEuro.java
// -----------------------------------------------------------
// Comments : simple Euro symbol test
// -----------------------------------------------------------
// Author : R. BERTHOU
// E-Mail : rbl@berthou.com
// URL : http://www.javaside.com
// -----------------------------------------------------------
// 1.00 * R.BERTHOU * 09/04/2000 * samples tips
//******************************************************************************
// Importations
import java.awt.* ;
public class tipsEuro extends java.applet.Applet {
// Variables
TextArea t1 = new TextArea("", 5, 10, TextArea.SCROLLBARS_VERTICAL_ONLY) ;
// Initialisation de l'applet
public void init() {
String s = "" ;
t1.setEditable(false);
t1.setBackground(Color.white);
setLayout(new GridLayout(1,1)) ; // Define a Layout
add(t1) ; // add TextArea
if ( java.lang.Character.isDefined('\u20AC') ) {
s = " Java et l'Euro : \n" +
"Le caractere Euro est defini dans votre JVM \n" +
"Ce caractere est le 0x20AC \n\n" +
" 1 \u20AC = 6,55957 Francs " ;
}
else {
s = " Java et l'Euro : \n" +
"Le caractere Euro n'est pas defini dans votre JVM \n" +
"ce caractere est le 0x20AC \n\n" +
" 1 Euro = 6,55957 Francs " ;
}
t1.setText(s) ; // Put text in a TextArea
}
}
Generated by srcColor