Guest User

Untitled

a guest
Jun 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. //tu dziala
  2. Vector<PanelFaktura> wektor=new Vector<PanelFaktura>(ile);
  3. int j=ktory;
  4. for(int i=ktory;i<ile;i++)
  5. {
  6. PanelFaktura panelek = (PanelFaktura)
  7. podpanel_zakladkifaktury.getComponent(i);
  8. panelek.setName("Pozycja"+j);
  9. panelek.setNr(j);
  10. wektor.add(panelek);
  11. j++;
  12. }
  13.  
  14. //tu nie dziala - z opcja przechodnia do jpanel i bez niej
  15. JPanel panelek= (JPanel) podpanel_zakladkifaktury.getComponent(i);
  16. PanelFaktura pozycja = (PanelFaktura) panelek.getComponent(i);
  17. wekpoz.add(pozycja);
Add Comment
Please, Sign In to add comment