private void orderGUIButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_orderGUIButtonActionPerformed
        if (amountOrderField.getText().equals("") || amountOrderField.getText().isEmpty()){
            JOptionPane.showMessageDialog(this,"Fill amount first!");
        }
        else{
            Item item = idb.getItem(productLabel.getText());            
            try {
                idb.order(item.getName(),Integer.parseInt(amountOrderField.getText()),item.getLoc());
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(ManagerGUI.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }//GEN-LAST:event_orderGUIButtonActionPerformed