-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScollBar3.java
More file actions
45 lines (31 loc) · 817 Bytes
/
ScollBar3.java
File metadata and controls
45 lines (31 loc) · 817 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
42
43
44
45
import java.awt.*;
import java.applet.Applet;
/*
<applet code = ScollBar3 width=300 height=300>
</applet>
*/
public class ScollBar3 extends Applet
{
public void start()
{
TextField tf1 = new TextField("Clipboard");
Button btn1 = new Button("Italic");
btn1.setBounds(100,200,85,30);
Button btn2 = new Button("Bold");
btn2.setBounds(120,120,85,30);
Button btn3 = new Button("Delete");
btn3.setBounds(130,120,85,30);
String s = "This is Text Editor";
TextArea ta1 = new TextArea(s,7,75);
Label lb1 = new Label("Text Editing Tools");
TextArea ta2 = new TextArea("This text Area is Protected",7,75);
ta2.setEditable(false);
add(lb1);
add(btn1);
add(btn2);
add(btn3);
add(ta1);
add(tf1);
add(ta2);
}
}