import java.awt.*;
import java.util.*;
import javax.swing.*;

//this is the Implementor class
//that decides which class to return
public class listBridge extends Bridger {
    protected visList list;

    public listBridge(visList jlist) {
        setLayout(new BorderLayout());
        list = jlist;
        add("Center", (JComponent)list); 
    }  
    public void addData(Vector v) {
        for (int i = 0; i < v.size(); i++) {
            String s = (String)v.elementAt (i);
            list.addLine (s);
        }
    }
}
