Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Object obj2 = modelo.getValueAt(linha, 31);
  2.  
  3. else if (snreferencia.contains("Sim")) {
  4. Object obj = modelo.getValueAt(linha, 30);
  5.  
  6. if (obj == null || obj.toString().trim().isEmpty()) {
  7. modelo.setValueAt("", linha, 33);
  8. } else {
  9. modelo.setValueAt("Referência", linha, 33);
  10. }
  11.  
  12. else if (snreferencia.contains("Sim")) {
  13. Object obj = modelo.getValueAt(linha, 30);
  14. Object obj2 = modelo.getValueAt(linha, 31);
  15. if (obj == null || obj.toString().trim().isEmpty()) {
  16. modelo.setValueAt("", linha, 33);
  17. }
  18. if (obj2 == null || obj2.toString().trim().isEmpty()) {
  19. modelo.setValueAt("", linha, 33);
  20. } else {
  21. modelo.setValueAt("Referência", linha, 33);
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement