AddressPanel.java


import java.awt.*;
import java.awt.event.*;

public class AddressPanel extends Panel
    implements TextListener {
    TextArea t0 = 
    	new TextArea("1313 Mocking Bird Lane");
    TextArea t1 = 
    	new TextArea("Notes on John");
    public void textValueChanged(
    	TextEvent e) {
    	    System.out.println(
    	    	e);
    }    
    AddressPanel() {
    	setLayout(
    	    new GridLayout(0,1));
    	add(t0);
    	add(t1);
    	t0.addTextListener(this);
    	t1.addTextListener(this);
    	}
}

[Back to Index]
This document was generated automatically by Kahindu.
Kahindu