currentComponent = propertyPanel;
getScrollPane().setViewportView(propertyPanel);
} else if (selectedItem instanceof School) {
PnlSchoolProperties propertyPanel = new PnlSchoolProperties();
propertyPanel.setSchool((School) selectedItem);
currentComponent = propertyPanel;
getScrollPane().setViewportView(propertyPanel);
} else if (selectedItem instanceof Accident) {
PnlAccidentProperties propertyPanel = new PnlAccidentProperties();
propertyPanel.setAccident((Accident) selectedItem);
currentComponent = propertyPanel;
getScrollPane().setViewportView(propertyPanel);
} else {