Example 12.1 : This program draws a line diagonally across the applet
import java.applet.*;
import java.awt.*;
public class Lin extends Applet {
public void paint(Graphics g) {
g.drawLine(2, 2, this.getSize().width, this.getSize().height);
}
}
SiteMap
|
Link Us
...Language...
English
French
German
Hindi
Italian
Russian
Japanese
Chinese
About Us
|
Portfolio
|
Services
|
Career
|
Contact Us
|
Industrial Training
|
Achievement
Corporate Services
Web Design and development
Web Promotion (SEO)
Multimedia/CD Presentation
Software development
E.Commerce
Training@balujalabs
Software Courses
Hardware Courses
Networking.Courses
Mobile Repairing Courses
UGC Degrees
Student Corner
Programming & Projects
Placement Papers
Project Ideas
Synopsis Ideas
Franchise Section
Administrator
Franchise Inquiry
Draw lines diagonally across the applet
1
Draw lines diagonally across the applet
2
To demonstrate the use of set color ( ) function.
3
To demonstrate the use of draw Rect ( ) function.
4
To demonstrate the use of clear Rect function.
5
To demonstrate the use of fill Rect function.
6
To demonstrate the use of draw polygon ( ) and fill polygon function.
7
To demonstrate the use of draw polygon ( ) function.
8
To demonstrate the use of draw arc ( ) function.
9
To demonstrate the use of fill arc ( ) function.
10
To demonstrate the use of get Image ( ) function.
11
Program to demonstrate the use of draw Oval related to rectangle.
12
To demonstrate the use of draw oval and fill oval function.
13
To demonstrate the draw and fill arc functions.
14
To demonstrate the draw arc and fill arc functions.
15
To demonstrate the use of different graphical functions.
About Us
|
Portfolio
|
Services
|
Career
|
Contact Us
|
Industrial Training
|
Achievement