<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>java applet Archives -</title>
	<atom:link href="https://mitindia.in/tag/java-applet/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/java-applet/</link>
	<description></description>
	<lastBuildDate>Fri, 08 Jul 2016 05:54:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>java applet Archives -</title>
	<link>https://mitindia.in/tag/java-applet/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Java Applet programming</title>
		<link>https://mitindia.in/java-applet-programming/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Mon, 04 Jul 2016 13:25:20 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[java applet]]></category>
		<category><![CDATA[life cycle of an applet]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=226</guid>

					<description><![CDATA[<p>The Abstract Window Toolkit (AWT) is a set of Java classes that allow the programmer to create a Graphical User Interface (GUI) and accept user input through the keyboard and the mouse. They are heavyweight components of Java Foundation Classes (JFC). The java.awt package contains all classes for creating user interfaces and for painting graphics [&#8230;]</p>
<p>The post <a href="https://mitindia.in/java-applet-programming/">Java Applet programming</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<div>The Abstract Window Toolkit (AWT) is a set of Java classes that allow the programmer to create a Graphical User Interface (GUI) and accept user input through the keyboard and the mouse.</div>
<p><img decoding="async" class="alignright" src="http://theegeek.com/wp-content/uploads/2013/07/Java-Applet.png" alt="Java Applet programming" width="200" height="191" border="0" /></p>
<p>They are heavyweight components of Java Foundation Classes (JFC). The java.awt package contains all classes for creating user interfaces and for painting graphics and images.<br />
The AWT has several subsystems that support the development and creation of an attractive and efficient GUI. The subsystems include:</p>
<ul>
<li>Containers</li>
<li>Components</li>
<li>Layout managers</li>
<li>Graphics and drawing capabilities</li>
<li>Fonts</li>
<li>Events</li>
</ul>
<p>An Applet is a Java program that can be embedded in an HTML page and executed on a Java enabled browser.</p>
<div>Difference between Applets and Applications</div>
<p>An Applet is basically designed for deploying on the web.<br />
An application is designed to work as a standalone program.</p>
<p>Applets are created by extending the java.applet.Applet class.<br />
There is no such constraint for an application.</p>
<p>Applets run on any browser.<br />
Applications run using Java interpreter.</p>
<p>Execution of Applets begins with the init() method.<br />
Execution of applications begins with main() method.</p>
<p>Applet must contain at least one public class failing which the compiler reports an error. It is not mandatory to declare main() for an applet.<br />
In case of application, main() has to be included in a public class.</p>
<p>Output to an Applet’s window is done by using different AWT methods such as drawString().<br />
In case of an application System.out.println() method is used.</p>
<p><strong><span style="text-decoration: underline;"><span style="color: #ff9900; text-decoration: underline;">Life cycle of an Applet </span></span></strong></p>
<p>Life cycle of an object specifies stages, which the object has to pass right from its creation until it is destroyed.<br />
An Applet defines its structure from four events that take place during execution.<br />
For each event, a method is automatically called.</p>
<p><strong><span style="color: #ff9900;"><u>The methods are as follows:</u></span></strong></p>
<p>init(): called during initialization.<br />
start(): starts the Applet once it is initialized.<br />
stop(): used to pause the execution of an Applet.<br />
destroy(): used to destroy the Applet.<br />
paint():used to display a line, text or an image on the screen.<br />
repaint() : used to paint the Applet again after it has been drawn once.</p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fjava-applet-programming%2F&amp;linkname=Java%20Applet%20programming" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Fjava-applet-programming%2F&amp;linkname=Java%20Applet%20programming" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Fjava-applet-programming%2F&#038;title=Java%20Applet%20programming" data-a2a-url="https://mitindia.in/java-applet-programming/" data-a2a-title="Java Applet programming"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/java-applet-programming/">Java Applet programming</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
