TextField & TextArea:
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*<applet code="TextFieldDemo" width=300 height=300></applet>*/
public class TextFieldDemo extends Applet implements ActionListener, TextListener
{
TextArea ta;
TextField tf;
public void init()
{
tf=new TextField(20);
tf.addActionListener(this);
tf.addTextListener(this);
add(tf);
ta=new TextArea(10,20);
add(ta);
}
public void actionPerformed(ActionEvent ae)
{
ta.append("ActionEvent: "+ae.getActionCommand()+"\n");
tf.setText("");
}
public void textValueChanged(TextEvent te)
{
ta.append("TextEvent: "+tf.getText()+"\n");
}
}
I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Crack Softwares Free Download But thankfully, I recently visited a website named ProCrackHere
ReplyDeleteTransor for Whatsapp Crack
Wavepad Sound Editor Crack