<?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>applet string Archives -</title>
	<atom:link href="https://mitindia.in/tag/applet-string/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/applet-string/</link>
	<description></description>
	<lastBuildDate>Fri, 08 Jul 2016 05:53:19 +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>applet string Archives -</title>
	<link>https://mitindia.in/tag/applet-string/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Applet Examples</title>
		<link>https://mitindia.in/applet-examples/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Mon, 04 Jul 2016 13:27:49 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[applet string]]></category>
		<category><![CDATA[graphic demo in applet]]></category>
		<category><![CDATA[scrolling banner in applet]]></category>
		<category><![CDATA[sum of two numbers in java applet]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=228</guid>

					<description><![CDATA[<p>Creating first java applet program to display simple strings. import java.applet.Applet; import java.awt.*; /*&#60;applet code=app.class width=200 height=200&#62; &#60;/applet&#62; */ public class app extends Applet { String str,str2; public void init() { str="Hello to applet Programming"; str2="Hello to applet Programming"; } public void paint(Graphics g) { g.drawString(str, 10, 10); g.drawString(str2, 10, 30); g.drawString("hello to MIT India", [&#8230;]</p>
<p>The post <a href="https://mitindia.in/applet-examples/">Applet Examples</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Creating first java applet program to display simple strings.</p>
<pre>import java.applet.Applet;
import java.awt.*;

/*&lt;applet code=app.class width=200 height=200&gt; &lt;/applet&gt; 

*/

public class app extends Applet
{
String str,str2;

public void init()
{
str="Hello to applet Programming";
str2="Hello to applet Programming";
}
public void paint(Graphics g)
{
g.drawString(str, 10, 10);
g.drawString(str2, 10, 30);
g.drawString("hello to MIT India", 10, 50);
}
}</pre>
<p>Applet program to display an image.</p>
<pre>import java.awt.*;
import java.applet.*;

/*&lt;applet code=app2.class width=200 height=200&gt; &lt;/applet&gt; */
public class app2 extends Applet
{
Image img;

public void init()
{
img=getImage(getCodeBase(), "login.png");
}

public void paint(Graphics g)
{
g.drawImage(img, 10, 20, this);
}
}</pre>
<p>Java Applet program to display SUM of Two numbers.</p>
<pre>import java.awt.*;
import java.applet.*;
/* &lt;applet code=app3.class width=200 height=200&gt; 

&lt;/applet&gt; */
public class app3 extends Applet
{
int a,b,c;
String str;
public void init()
{
a=3; 
b=5; 
c=a+b;
str="Sum of a and b is : " + String.valueOf(c);
}
public void paint(Graphics g)
{
g.drawString(str, 10, 20);
}
}</pre>
<p>Applet program to show graphic demo. [drawing rectangle and filling it with colors]</p>
<pre>import java.applet.*;
import java.awt.*;
import java.awt.Graphics;

/*&lt;applet code="App5.class" width=300 height=200&gt; 

&lt;/applet&gt; */
public class App5 extends Applet{

    
    public void paint(Graphics g)
    {
        String str="Applet Test!";
        g.drawString(str, 10, 20);
        
        g.setColor(Color.RED);
        g.fillRect(10, 20, 50, 50);
        g.drawRect(10, 20, 50, 50);
        
        g.setColor(Color.BLUE);
        g.fillRect(10, 80, 50, 50);
        g.drawRect(10, 80, 50, 50);
        
        g.setColor(Color.GREEN);
        g.fillRect(10, 140, 50, 50);
        g.drawRect(10, 140, 50, 50);
        }
}</pre>
<p>Applet program to show simple scrolling banner.</p>
<pre>import java.awt.*;
import java.applet.*;

/* &lt;APPLET ALIGN="CENTER" CODE="banner.class" WIDTH="300" HEIGHT="400"&gt;&lt;/APPLET&gt; */

public class banner extends Applet implements Runnable
{
String str = "This is a simple Banner..";
  Thread t ;
  boolean b;
  public void init() {
  setBackground(Color.gray);
  setForeground(Color.yellow);
  }

  public void start() {
  t = new Thread(this);
  b = false;
  t.start();
  }

  public void run () {
  char ch;
  for( ; ; ) {
  try {
  repaint();
  Thread.sleep(250);
  ch = str.charAt(0);
  str = str.substring(1, str.length());
  str = str + ch;
  } catch(InterruptedException e) {}
  }
  }
  public void paint(Graphics g) {
  g.drawRect(1,1,300,150);
  g.setColor(Color.yellow);
  g.fillRect(1,1,300,150);
  g.setColor(Color.red);
  g.drawString(str, 1, 150);
  }
}</pre>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fapplet-examples%2F&amp;linkname=Applet%20Examples" 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%2Fapplet-examples%2F&amp;linkname=Applet%20Examples" 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%2Fapplet-examples%2F&#038;title=Applet%20Examples" data-a2a-url="https://mitindia.in/applet-examples/" data-a2a-title="Applet Examples"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/applet-examples/">Applet Examples</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
