APPLET PROGRAMMING
import java.awt.*;
import java.applet.*;
...........................
...........................
public class appletclassname extends Applet
{
...........................
...........................
public void paint(Graphics g)
{
...........................
........................... //Applet operations code
...........................
}
...........................
...........................
}
How to Build a java applet...
An applet is a small Java program that is embedded and ran in some other Java interpreter program such as
- a Java technology-enabled browser
- Sun’s applet viewer program called appletviewer
Applets do not use the main() method for initiating the execution of the code.Applets,when loaded,automatically call certain methods of Applet class to start and execute the applet code.
Applets cannot run any program from the local computer and they are restricted from using libraries from other languages such as C or C++.
The general form is as shown below:
import java.awt.*;
import java.applet.*;
...........................
...........................
public class appletclassname extends Applet
{
...........................
...........................
public void paint(Graphics g)
{
...........................
........................... //Applet operations code
...........................
}
...........................
...........................
}
Example:
import javax.swing.JApplet;
import java.awt.*;
public class Applets001 extends JApplet{
public void paint(Graphics g){
super.paint(g);
g.setColor(Color.black);
g.fillOval(60, 40, 220, 220);
g.setColor(Color.red);
g.fillOval(80, 60, 180, 180);
}
}
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
<TITLE>This is my first Applet</TITLE>
</HEAD>
<BODY>
<APPLET code="Applets001.class" codebase="." width=400 height=300></APPLET>
</BODY>
</HTML>
Thanks for sharing informative article on java application development. Your post helped to understand the career in Java.
ReplyDeleteJ2EE Training in Chennai
.Net Training in Chennai
PHP Training in Chennai
The information you have given here is truly helpful to me. CCNA- It’s a certification program based on routing & switching for starting level network engineers that helps improve your investment in knowledge of networking & increase the value of employer’s network, so if you have an wish to take training on CCNA.
ReplyDeleteRegards,
ccna course in Chennai|ccna training in Chennai|ccna training institute in Chennai
Very nice piece of information, please keep updating and share your valuable information with us.
ReplyDeletehtml5 training in chennai|html5 training chennai|html5 course in chennai|html5 training institutes in chennai
Hi, actually I'am new to angularJs and infact I'am learning angularjs with online training. I'am having doubt, if you could solve the doubt for me that would be very helpful. The doubt is, how can I reset a “$timeout”, and disable a “$watch()”?
ReplyDeleteRegards,
angularjs training in Chennai|angularjs course in Chennai|angularjs training institute in Chennai
If you want Android Application Development in affordable price for your Business apps then contact us.....
ReplyDeleteBig data is used extensively in MNC today as using big data leads to accurate decision making and there are is a huge demand for the big data analysts.
ReplyDeleteBig data training in Chennai | Hadoop training in Chennai | Big data training institute in Chennai
The usage of third party storage system for the data storage can be avoided in cloud computing and we can store, access the data through internet.
ReplyDeletecloud computing training in chennai | cloud computing courses in chennai
Thanks for sharing this unique and informative content which provided me the required information.
ReplyDeleteJava Training in Chennai | JAVA Course in Chennai
I would like to say that this blog really convinced me, you give me best information! Thanks, very good post.
ReplyDeleteselenium training in chennai
reens Technology's the leading software Training & placement centre Chennai & ( Adyar)
ReplyDeleteoracle training in chennai
looking good and useful blog
ReplyDeletebest java j2ee training | java training center in chennai | java training institute in chennai | java j2ee training center in chennai
You will educate how to troubleshoot projects and love lessons in differed zones indicated as duds.java
ReplyDeleteI learn so many things from your blog. keep updating....Linux Training Institute in Chennai | Linux Training Institute in Velachery.
ReplyDeleteThanks for sharing much informative blog, it helps to clear my doubts. really it is very uesful for me.
ReplyDeleteJava Training in chennai
I enjoy what you guys are usually up too. This sort of clever work and coverage! Keep up the wonderful works guys I’ve added you guys to my blog roll..,
ReplyDeletewhite label website builder
mobile website builder
nice and really helpful article to everyone... thanks for sharing
ReplyDeleteImage Processing Project Center in Chennai | Image Processing Project Center in Velachery
This blog is helpful, keep sharing. Thank you.
ReplyDeleteBest Software Company | Austere Technologies
Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.
ReplyDeleteIOT SERVICES | INTERNET OF THINGS | Austere Technologies
I strongly believe that there will be great opportunities for those who looked into this area, thanks much for sharing this wonderful article here...
ReplyDeleteBest Online Software Training Institute | Advanced Java Training
Excellent information you made in this blog, very helpful information. Thanks for sharing.
ReplyDeleteCommerce College | Avinash college of commerce
Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.
ReplyDeleteBest Commerce College in Hyderabad | Avinash College of Commerce
VERY INFORMATIVE BLOG. THANK YOU.
ReplyDeleteBest junior college in Hyderabad | Avinash College of commerce
Thank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book Andaman holiday packages
ReplyDeleteHi Thanks for the nice information its very useful to read your blog. We provide best Chartered Accountancy
ReplyDeleteThank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book BEST ANDAMAN HONEYMOON PACKAGE @5999
ReplyDeleteHi Thanks for the nice information its very useful to read your blog. We provide Software Development Services
ReplyDeleteHi Thanks for the nice information its very useful to read your blog. We provide best Chartered Institute Of Management Accountants
ReplyDeleteThank you for sharing this valuable information. But get out this busy life and find some peace with a beautiful trip. book BEST ANDAMAN FAMILY PACKAGE @45999
ReplyDeleteMcAfee Phone Number
ReplyDeleteNorton toll-free Number
Avast Customer Service
Norton Customer Service phone numberr
ReplyDeleteMcAfee Customer Service Number
Malwarebytes support phone number
Hp printer support for mac
Canon printer support number
It was very interesting and I really glad to see your wonderful blog. Surely It will be helping for my professional oriented. Please updated more posts...
ReplyDeleteExcel Training in Chennai
Advanced Excel Training in Chennai
corporate training in chennai
Unix Training in Chennai
Linux Training in Chennai
Social Media Marketing Courses in Chennai
Oracle Training in Chennai
Power BI Training in Chennai
Excel Training in Chennai
Advanced Excel Training in Chennai
ReplyDeleteUpgrade to Office 365 and get the latest Office applications, installs on multiple PCs/Macs and devices, 1 TB OneDrive cloud storage per user, tech support, and other services with your subscription.
office.com/setup
Office.com/Setup
ReplyDeleteGet inspired by your blog. Keep doing like this....
Best IELTS Coaching in Bangalore
IELTS Training in Bangalore
IELTS Coaching centre in Chennai
IELTS Classes in Bangalore
IELTS Coaching in Bangalore
IELTS Coaching centre in coimbatore
IELTS Coaching in madurai
IELTS Coaching in Hyderabad
Selenium Training in Chennai
Ethical hacking course in bangalore
Your article is very informative. Thanks for sharing the valuable information.
ReplyDeleteData Science Course in Chennai
Data Science Courses in Bangalore
Data Science Course in Marathahalli
Best Data Science Training in Marathahalli
Data Science Institute in Marathahalli
AWS Training in Bangalore
Data Science Training in Bangalore
Data Science Institute in Bangalore
Spoken English Classes in Bangalore
DevOps Training in Bangalore
An impressive share! I have just forwarded this onto a friend who had been doing a little homework on this. And he in fact ordered me dinner because I stumbled upon it for him... lol. So let me reword this.... Thank YOU for the meal!! But yeah, thanks for spending the time to talk about Jio Kbc Head Office Number Mumbai
ReplyDeleteThanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. otherwise anyone wants to learn advanced java so contact here- +91-9311002620 or visit website- https://www.htsindia.com/Courses/java/advanced-java-training-institute-in-delhi
ReplyDeleteThank you for sharing this. You have written impressive tutorials on Java, I really commend your work. This is one of the best blogs to learn programming. Keep sharing your valuable knowledge and expertise. Looking forward to learn more, great blog. Best Java Training Institute in Chennai
ReplyDelete
ReplyDeleteHere, Jon, we provide the best Mail recommendation for protecting your System. Go and read this we are available 24/7 hr. So go fast and click this link. Also read this and contact us.
AOL Mail | Cash App Sign in | Cash App Help
q
Thanks a lot very much for the high quality and results-oriented help.
ReplyDeleteI won’t think twice to endorse your blog post to anybody who wants
and needs support about this area.
node js training in chennai
oracle training in chennai
ASP.NET Training in Chennai
The users of Verizon do witness a lot of technical snags when they try to proceed for Verizon Fios Router setup or want to activate my new Verizon router. Now, to activate it, you are expected to apply a few important instructions. Firstly, you must plug the router into an electrical outlet and then switch it on. Now, you must connect the AC adapter which came with the router and locate the back of the router. Next, you are required to plug the router into an electrical outlet, and then you must give up to 10 to 15 minutes for the router to activate entirely. And then it will power on and off during the process.
ReplyDelete