model.setNodeListener(this);
model.addRecalcListener(this);
model.getSchedule().setListener(this);
// Create the GUI preferences object
guiPrefs = new GuiPrefs(TaskScheduleDialog.class, model.getID());
// Create a JTreeTable to display the task list.
treeTable = new TaskJTreeTable(model);
treeTable.setShowGrid(true);
treeTable.setIntercellSpacing(new Dimension(1, 1));