/* Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
This code is for educational purposes only. Use at own risk.*/

1. /////////  Simplest.java   /////////////// 

2.  

3. public class Simplest 

4.     extends java.applet.Applet 

5.  

6.

7.   public void paint ( java.awt.Graphics   gr ) 

8.   { 

9.  

10.     gr.drawString ( "Seeing is believing", 25, 75 ); 

11.  

12.     gr.drawRect ( 0, 0, 299, 199 ); 

13.  

14.   } 

15.

16.  

17. ////////  Simplest.html     /////////////// 

18.  

19. <HTML

20.  

21. <HEAD><TITLE

22. HTML Test Page 

23. </TITLE></HEAD

24.  

25. <BODY

26. An Applet that paints itself. 

27. <HR

28.  

29. <APPLET 

30.   CODE     = "Simplest.class" 

31.   WIDTH    = "300" 

32.   HEIGHT   = "200" 

33.

34. </APPLET

35.  

36.  

37. </BODY

38.  

39. </HTML

40.  

41.