File tree Expand file tree Collapse file tree
EventsAndAWTSwing/AWT/TextArea Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments