}
private void plantationsShow(){
if (jPanelPlantationsViewer != null) {
Container container=(Container)jComboBoxPlantations.getSelectedItem();
Plantation plantation;
if(container!=null){
try{
plantation=(Plantation)container.getData();
}catch(IOException e){
Messages.showException(e);
return;
}catch(ClassNotFoundException e){
Messages.showException(e);
return;
}
if(jPanelPlantationsViewer.getPlantation().equals(plantation)){
return;
}
}
jPanelPlantationsViewer.setVisible(false);
jPanelPlantationsDetails.remove(jPanelPlantationsViewer);
Data.removeDataListener(jPanelPlantationsViewer);
jPanelPlantationsViewer = null;
}
if (jComboBoxPlantations.getModel().getSize() > 0 && jComboBoxPlantations.getSelectedItem()!=null) {
Plantation plantation;
Container container;
container=(Container)jComboBoxPlantations.getSelectedItem();
try{