POLITECHNIKA RZESZOWSKA - Wydział Bektrotechniki i Informatyki
import j ava.awt.*; import java.awt.event.*; import j ava.applet.*; public class TextListenerExample extends Applet |
{ | |
TextArea ta; | ||
public void init() { | ||
tf = new TextField(20); | ||
ta = new TextArea(5, 20); |
__ | |
add(tf); |
h_7~ | |
add(ta); } |
r |
j |
class MyListener implements TextListener { |
— | |
public void textValueChanged(TextEvent e) |
{ | |
ta.setText(tf-getText()); ł } } |
TSW Wyki.id 6 Copyright © 2012 Mn PROKOP 39/74