Advertisement
buzzonit

OSCAR JFRAME

May 23rd, 2016
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. String nome = jTextField1.getText();
  2. String end = jTextField2.getText();
  3. String Bairro = jTextField3.getText();
  4. String Cidade = jTextField4.getText();
  5. String UF = jTextField5.getText();
  6. String CPF = jTextField6.getText();
  7. String RG = jTextField7.getText();
  8. String Fone = jTextField8.getText();
  9.  
  10. DefaultTableModel m = (DefaultTableModel) jTable2.getModel();
  11.  
  12. Object linha[] = new Object [8];
  13.  
  14. linha[0]=nome;
  15. linha[1]=end;
  16. linha[2]=Bairro;
  17. linha[3]=Cidade;
  18. linha[4]=UF;
  19. linha[5]=CPF;
  20. linha[6]=RG;
  21. linha[7]=Fone;
  22.  
  23. m.addRow(linha);
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement