import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import com.wildcrest.MultiLineLabel;

public class MultiLineLabelTest extends Applet implements TextListener {
    TextArea ta;
    MultiLineLabel mLL;
    
    public void init() {
        setLayout(new FlowLayout());
        
        ta = new TextArea("Enter desired text here...",10,30,TextArea.SCROLLBARS_VERTICAL_ONLY);
        add(ta);

        mLL = new MultiLineLabel();
        mLL.setLabelWidth(250);
        mLL.setBackground(Color.pink);
        mLL.setText("...here will be the result");
        mLL.setFont(new Font("SansSerif", Font.PLAIN, 11));
        add(mLL);
        
        ta.addTextListener(this);
    }

    public void textValueChanged(TextEvent e) {
        mLL.setText(ta.getText());
    }

}
