private void orderNewItemButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_orderNewItemButtonActionPerformed
        if (checkItemInput()){
            try {
                idb.order(nameField.getText(), Integer.parseInt(quantityField.getText()), locField.getText());
                newItemGUI.setVisible(false);
                loadData();
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(ManagerGUI.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_orderNewItemButtonActionPerformed