Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void lista2(){
- DefaultListModel modelo = new DefaultListModel();
- ControleBasico cCon = new ControleConsulta();
- Object o=null;
- Cliente a;
- List<Object> listaCodCli = new ArrayList<>();
- int maximo = 1999;
- listaCodCli= cC.lista();
- for (int i = 0; i < listaCodCli.size(); i++) {
- o = listaCodCli.get(i);
- a = (Cliente) o;
- if(a!=null){
- modelo.addElement("["+a.getCodCli()+"]");
- PCLista.setModel(modelo);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement