popup.show(tree, p.x, p.y);
}
}
public Image getSelectedImage() {
Image image = new Image();
image.setCapacity(capacityTextField.getText());
if (creationDateTextField.getText() != null && !creationDateTextField.getText().isEmpty()) {
try {
image.setCreationDate(df.parse(creationDateTextField.getText()));
} catch (ParseException ex) {
ex.printStackTrace();
}
} else {
image.setCreationDate(null);
}
image.setDescription(descriptionArea.getText());
image.setOperationSystem(operationSystemTextField.getText());
return image;
}