How to write TextArea’s program in java applet?
Hello Friends,
Today I will explain how can we use TextArea in java applet.
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
*/
public class eleven extends Applet
{
public void init()
{
String val="hay..n"+"whts up..n"+"whats going on??";
TextArea text=new TextArea(val,10,30);
add(text);
}
}