graphTypeCombo.removeAllItems();
layerCombo.removeAllItems();
datasetTextField.setEditable(false);
nnetField.setEditable(false);
nnetField.setText(nnet.getLabel());
<BUG>Layer[] layers = nnet.getLayers();
for (int i = layers.length; i > 0; i--) {
</BUG>
layerCombo.addItem(i);
}

graphTypeCombo.removeAllItems();
layerCombo.removeAllItems();
datasetTextField.setEditable(false);
nnetField.setEditable(false);
nnetField.setText(nnet.getLabel());
for (int i = nnet.getLayers().size(); i > 0; i--) {
layerCombo.addItem(i);
