-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp2.java
More file actions
41 lines (34 loc) · 935 Bytes
/
app2.java
File metadata and controls
41 lines (34 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import java.applet.*;
import java.awt.*;
public class app1 extends Applet
{
String name;
int id;
Integer i;
public void init()
{
name=getParameter("Name");
id=Integer.parseInt(getParameter("ID"));
System.out.println("Applet init");
}
public void start()
{
++id;
i=new Integer(id);
System.out.println("Applet started\n");
}
public void paint(Graphics g)
{
g.drawString(name,20,20);
g.drawString(i.toString(),50,30);
System.out.println("PAint called\n");
}
public void stop()
{
System.out.println("stopped");
}
public void destroy()
{
System.out.println("destroy");
}
}