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 | import java.awt.*; import java.applet.*; /* <applet code="sim" width=300 height=300> </applet> */ public class sim extends Applet { String msg=" "; public void init() { msg+="init()--->"; setBackground(Color.orange); } public void start() { msg+="start()--->"; setForeground(Color.blue); } public void paint(Graphics g) { msg+="paint()--->"; g.drawString(msg,200,50); } } |
Output:

Java Applet program output
Description :
This is the one stop educational site for all Electronic and Computer students. If you want to learn something new then we are here to help. We work on Microcontroller projects, Basic Electronics, Digital electronics, Computer projects and also in basic c/c++ programs.
#Home #Sitemap #Submit #Terms of Use
Copyright©2011 electrofriends.com All Rights Reserved
Contact:info@electrofriends.com | Powered by Dhyeya
November 12th, 2011 at 3:29 pm
Very Good and Useful Programs Written by You …..
Thanks a lot For these type of Programs…
Suresh