Skip to content

Commit b851516

Browse files
authored
text area using applet
1 parent ffe0b79 commit b851516

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import java.awt.*;
2+
import java.applet.*;
3+
4+
/*
5+
<applet code="TextAreaDemo" width=400 height=400>
6+
</applet>
7+
*/
8+
9+
10+
public class TextAreaDemo extends Applet {
11+
12+
public void init() {
13+
14+
String val =
15+
"Java 8 is the latest version of the most\n" +
16+
"widely-used computer language for Internet programming.\n" +
17+
"Building on a rich heritage, Java has advanced both\n" +
18+
"the art and science of computer language design.\n\n" +
19+
"One of the reasons for Java's ongoing success is its\n" +
20+
"constant, steady rate of evolution. Java has never stood\n" +
21+
"still. Instead, Java has consistently adapted to the\n" +
22+
"rapidly changing landscape of the networked world.\n" +
23+
"Moreover, Java has often led the way, charting the\n" +
24+
"course for others to follow.";
25+
26+
TextArea text = new TextArea(val, 10, 30);
27+
add(text);
28+
}
29+
}

0 commit comments

Comments
 (0)