package main.java.player.panels;

import java.util.List;

import javax.swing.JTextArea;

@SuppressWarnings("serial")
public class UnitInfoPanel extends ObservingPanel{
	
	public static final String TIME = "Time";
	private JTextArea unitInfoArea;
	
	//private JScrollPane scrollPane;
	public UnitInfoPanel() {

		unitInfoArea = new JTextArea(5, 5);
		unitInfoArea.setEditable(false);
		unitInfoArea.setLineWrap(true);
		unitInfoArea.setWrapStyleWord(true);
		add(unitInfoArea);
		//scrollPane = new JScrollPane(unitInfoArea);
		//add(scrollPane);
	}

	@Override
	public void update() {		
	List<String> unitInfoList = engine.getCurrentDescription();
		String unitInfo = "";
		for(String s: unitInfoList){
			unitInfo += s + "\n";
		}
		unitInfoArea.setText(unitInfo);
	}
}
@@ -245,43 +245,8 @@
 ;%0A%09%0A
-%09//private JScrollPane scrollPane;%0A
 %09pub
@@ -439,77 +439,8 @@
 a);%0A
-%09%09//scrollPane = new JScrollPane(unitInfoArea);%0A%09%09//add(scrollPane);%0A
 %09%7D%0A%0A

Remove scroll pane code