Showing posts with label java applet. Show all posts
Showing posts with label java applet. Show all posts

Sunday, January 30, 2011

Java applet Tutorial Website

Java Tutorial applet

Java Applet Tutorial

This tutorial will take you step by step through the process of building applets. I have chosen for a Learn-By-Example method, the fastest way to learn.
You will not learn the "Why" but the "How". Throughout the java tutorial all new lines of code are explained, the ones you have already seen aren't commented anymore.
Within a few minutes you will be able to display things on the screen, a few minutes later you are able to use a GUI and after that you wil see how to interact with the user.

next topic is coding using java applet

Sunday, September 12, 2010

Java Applet sample program ( simple rectangles in loop)


// Applet to print a group of rectangles
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;

public class Applet1 extends JApplet

{
public void paint(Graphics g)
{
int a = 3;
do
{
g.drawRect(a,a,100,100);
a=a+100;
}
while ( a < 370);
}
}