}
// TODO, get rid of synchronized, and put SwingWorker
public synchronized void addGameType(List list) {
GameType current = getCurrentGameType();
TreePath found=null;
DefaultMutableTreeNode root = new DefaultMutableTreeNode("root");
for (int c=0;c<list.size();c++) {
GameType gt = (GameType)list.get(c);
DefaultMutableTreeNode gtNode = new DefaultMutableTreeNode(gt);
root.add(gtNode);
if (gt.equals(current)) {
found = new TreePath(gtNode.getPath());
}
//System.out.println("Added: "+gt.toString()+" to the game types");
}