ef.setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
ef.setLocation(WindowUtils.getPointForCentering(ef));
//ef.addPropertyChangeListener(this);
ef.setVisible(true);
} else {
ReceiveDetail rd = new ReceiveDetail();
rd.setItemWarehouse(itemWarehouse);
rd.setQuantity(tfQuantity.getText());
rds.add(rd);
model.addRow(new Object[]{rd.getItemWarehouse().getItem().getItemsName()!=null?rd.getItemWarehouse().getItem().getItemsName():"",
rd.getQuantity()});
}
}//GEN-LAST:event_btAddActionPerformed