if( !(file.getObject() instanceof ThermalNetwork) ) {
throw new WorkBenchError("Can't view network as thermal.");
}
setLayout(new BorderLayout());
this.model = new ThermalModel((ThermalNetwork) file.getObject());
this.table = new JTable(this.model);
this.table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
add(new JScrollPane(this.table), BorderLayout.CENTER);
}