private void fillStock() {
   if (part.getStock() != null && !part.getStock().isEmpty()) {
     model.fill(part.getStock());
   } else {
     model.fill(null);
   }
 }
  private void fillData() {
    Collection<? extends Part> partCol = result.allInstances();
    if (!partCol.isEmpty()) {
      Part tempart = partCol.iterator().next();
      if (part != tempart) {
        part = tempart;
        clearGeneral();
        clearNotes();

        idTextField.setText(part.getId().toString());
        makeTextField.setText(part.getMake());
        modelTextField.setText(part.getModel());
        categoryTextField.setText(part.getCategory());

        if (part.getPrice() != null) {
          priceWithoutIVATextField.setText(formatWithoutIVA(part.getPrice()));
          priceWithIVATextField.setText(formatWithIVA(part.getPrice()));
        }

        notesTextArea.setText(part.getNotes());
        fillStock();

        printButton.setEnabled(true);
      }
    } else {
      //            clear();
    }
  }