implemented the resource calculation with JComboBox for tools