summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/TestApplet.java
blob: 7d4bbfdac353b6fc76c96bec824b5449baef3b9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import java.awt.*;

public class TestApplet extends javax.swing.JApplet {
	String parameter;

	public void init() {
		parameter = getParameter( "TEXT" );
		if( parameter == null )
			parameter = "No value found";
	}

	public void paint( Graphics screen ) {
		Graphics2D screen2D = (Graphics2D) screen;
		screen2D.drawString( "I got value '" + parameter + "'.", 5, 50);
	}  

}