0% found this document useful (0 votes)
218 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)
218 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
You are on page 1/ 3

Appletprograms12.

java 09/Apr/2019
1 /**
2 * @(#)Appletprograms.java
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 java.awt.*;
12 import java.applet.*;
13
14 public class Appletprograms extends Applet {
15
16 public void init() {
17 }
18
19 public void paint(Graphics g) {
20
21 g.drawString("Welcome to Java!!", 50, 60 );
22
23 }
24 }

Output
Appletprograms13.java 09/Apr/2019
1 /**
2 * @(#)Appletprograms.java
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 java.awt.*;
13 import java.applet.*;
14
15 public class Appletprograms extends Applet {
16
17public void init()
9 {
9 }
9
9 public void paint(Graphics g)
21 {
22
23 g.drawString("Welcome to Java!!", 50, 60 );
24 g.drawString("Above String Printed Using properties of an Applet class", 70, 80 );

26
25 }
26 }

output

You might also like