package kwic;

import java.util.ArrayList;
import javax.swing.*;
import java.io.*;

/*
 * Output.java
 *
 * Created on February 1, 2005, 10:49 PM
 */

/**
 *
 * @author  pxk039000
 */
public class Output {
    
    /** Creates a new instance of Output */
    public Output() {
    }
    
    public void display(JTextArea textArea,ArrayList arrayList) {
        
        int lineCount = arrayList.size();
        String text = "";
        for(int i=0; i<lineCount; ++i) {
            text += ((String)arrayList.get(i)).trim()+"\n";
        }
        textArea.setText(text);
    }
}
