0% found this document useful (0 votes)
226 views3 pages

@ (#) Appletprograms - Java Appletprograms Applet Application @author @version 1.00 2019/4/6

This document contains code for an Applet program that displays a message. The Applet class extends Applet and overrides the paint method to draw two strings - "Welcome to Java!!" at coordinates 50,60 and "Above String Printed Using properties of an Applet class" at coordinates 70,80.

Uploaded by

Pawan Bhogulkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
226 views3 pages

@ (#) Appletprograms - Java Appletprograms Applet Application @author @version 1.00 2019/4/6

This document contains code for an Applet program that displays a message. The Applet class extends Applet and overrides the paint method to draw two strings - "Welcome to Java!!" at coordinates 50,60 and "Above String Printed Using properties of an Applet class" at coordinates 70,80.

Uploaded by

Pawan Bhogulkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Appletprograms12.

java 09/Apr/2019
1 /**
2 * @(#)[Link]
3 *
4 * Appletprograms Applet application
5 *
6 * @author
7 * @version 1.00 2019/4/6
8 */
9
// Q12 Write Applet Program to dispaly message
10
11 import [Link].*;
12 import [Link].*;
13
14 public class Appletprograms extends Applet {
15
16 public void init() {
17 }
18
19 public void paint(Graphics g) {
20
21 [Link]("Welcome to Java!!", 50, 60 );
22
23 }
24 }

Output
[Link] 09/Apr/2019
1 /**
2 * @(#)[Link]
3 *
4 * Appletprograms Applet application
5 *
6 * @author
7 * @version 1.00 2019/4/6
8 */
9
10// Q13 Write java Program to extends class
11
12 import [Link].*;
13 import [Link].*;
14
15 public class Appletprograms extends Applet {
16
17public void init()
9 {
9 }
9
9 public void paint(Graphics g)
21 {
22
23 [Link]("Welcome to Java!!", 50, 60 );
24 [Link]("Above String Printed Using properties of an Applet class", 70, 80 );

26
25 }
26 }

output

You might also like