private void initTreeView(TreeView tree)
{
tree.getSelection().setMode(SelectionMode.MULTIPLE);
final TreeViewColumn nameCol = tree.appendColumn();
nameCol.setResizable(true);
nameCol.setTitle("Name");
final CellRendererText nameText = new CellRendererText(nameCol);
nameText.setText(name);
final TreeViewColumn progressCol = tree.appendColumn();
progressCol.setResizable(true);
progressCol.setTitle("Progress");
final CellRendererText progressText = new CellRendererText(progressCol);
progressText.setText(progress);
final TreeViewColumn sizeCol = tree.appendColumn();
sizeCol.setResizable(true);
sizeCol.setTitle("Size");
final CellRendererText sizeText = new CellRendererText(sizeCol);
sizeText.setText(size);
final TreeViewColumn totalsizeCol = tree.appendColumn();
totalsizeCol.setResizable(true);
totalsizeCol.setTitle("Total Size");
final CellRendererText totalsizeText = new CellRendererText(totalsizeCol);
totalsizeText.setText(totalsize);
final TreeViewColumn speedCol = tree.appendColumn();
speedCol.setResizable(true);
speedCol.setTitle("Speed");
final CellRendererText speedText = new CellRendererText(speedCol);
speedText.setText(speed);
final TreeViewColumn statusCol = tree.appendColumn();
statusCol.setResizable(true);
statusCol.setTitle("Status");
final CellRendererText statusText = new CellRendererText(statusCol);
statusText.setText(status);
tree.setModel(model);
}