ef.setLocation(WindowUtils.getPointForCentering(ef));
//ef.addPropertyChangeListener(this);
ef.setVisible(true);
} else {
if(Long.parseLong(itemWarehouseFrom.getQuantity()) > Long.parseLong(tfQuantity.getText())){
StockTransferDetail std = new StockTransferDetail();
LogInformation log = new LogInformation();
log.setActiveFlag(1);
log.setCreateDate(new Timestamp(System.currentTimeMillis()));
log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
std.setLogInformation(log);
std.setItemWarehouseFrom(itemWarehouseFrom);
std.setItemWarehouseTo(itemWarehouseTo);
std.setQuantity(tfQuantity.getText());
stds.add(std);
model.addRow(new Object[]{std.getItemWarehouseFrom().getItem().getItemsName()!=null?std.getItemWarehouseFrom().getItem().getItemsName():"",
std.getQuantity()});
} else {
JOptionPane.showMessageDialog(this, "Quantity not that much", "Quantity", JOptionPane.ERROR_MESSAGE);
}
}
}//GEN-LAST:event_btAddActionPerformed