Tuesday, March 22, 2011

Complete Java Reference

CORE-JAVA Tutorial

Applet Tutorial

Here is the java code of the sample applet program-Drawing shapes :.
import java.applet.*;
import java.awt.*;

public class CircleLine extends Applet{
int x=300,y=100,r=50;

public void paint(Graphics g){
g.drawLine(3,300,200,10);
g.drawString("Line",100,100);
g.drawOval(x-r,y-r,100,100);
g.drawString("Circle",275,100);
g.drawRect(400,50,200,100);
g.drawString("Rectangel",450,100);
}
}
Swing Tutorial


Here is the code of the sample program :
import javax.swing.*;

public class Swing_Create_Frame{
public static void main(String[] args){
JFrame frame = new JFrame("Frame in Java Swing");
frame.setSize(400, 400);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
JSP Tutorials

Servlets Tutorial

Hibernate Tutorials

Struts Tutorials

JSF Tutorials

MySQL Tutorials

Spring Tutorial

Ajax Tutorial

Jdbc Tutorial

XML Tutorial

JPA Tutorial

Web services Tutorial

JavaScript Tutorial

No comments: