ListModelList<Unit> lmUg = new ListModelList<Unit>(grups);
lstData.setModel(lmUg);
}
public Unit extract() {
Unit unit = txtIdUnit.getText() != null
? !"".equals(txtIdUnit.getText())
? unitRepository.findOne(txtIdUnit.getText())
: new Unit()
: new Unit();
unit.setKode(txtKode.getText());
unit.setNama(txtNama.getText());
unit.setAlamat(txtAlamat.getText());
// tarif.setKode(txtKode.getText());
return unit;
}