public boolean checkItemInput(){
        boolean result = true;
        if (nameField.getText().equals("") || nameField.getText().isEmpty()){
            result = false;
            JOptionPane.showMessageDialog(this,"Field 'name' is not to be empty!");
        }
        if (quantityField.getText().equals("") || nameField.getText().isEmpty()){
            try{
            int quantity = Integer.parseInt(quantityField.getText());
            }
            catch (IllegalArgumentException e){
                    JOptionPane.showMessageDialog(this,"Field 'quantity' requires number input format!");
                    }
            result = false;
        }
        if (locField.getText().equals("") || locField.getText().isEmpty()){
            result = false;
            JOptionPane.showMessageDialog(this,"Field 'location' is not to be empty!");
        }
        return(result);
    }