Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. public void mouseClicked(MouseEvent e) {
  2. if( e.getButton()== 1)//boton izquierdo
  3. {
  4. int filap = this.vista.__tabla_profesores.rowAtPoint(e.getPoint());
  5. if (filap > -1){
  6. this.vista.__profesoresBuscador.setText( String.valueOf( this.vista.__tabla_profesores.getValueAt(filap, 1) ));
  7. }
  8.  
  9. }
  10. if( e.getButton()== 1)//boton izquierdo
  11. {
  12. int filac = this.vista.__tabla_cursos.rowAtPoint(e.getPoint());
  13. if (filac > -1){
  14. this.vista.__cursosidCurso.setText( String.valueOf( this.vista.__tabla_cursos.getValueAt(filac, 0) ));
  15. }
  16.  
  17. }
  18. if( e.getButton()== 1)//boton izquierdo
  19. {
  20. int filacp = this.vista.__tabla_cursosProfesor.rowAtPoint(e.getPoint());
  21. if (filacp > -1){
  22. auxidProf = (String) this.vista.__tabla_cursosProfesor.getValueAt(filacp, 1);
  23. }
  24.  
  25. }
  26. if( e.getButton()== 1)//boton izquierdo
  27. {
  28. int filaa = this.vista.__tabla_alumnos.rowAtPoint(e.getPoint());
  29. if (filaa > -1){
  30. this.vista.__alumnosBuscador.setText( String.valueOf( this.vista.__tabla_alumnos.getValueAt(filaa, 1) ));
  31. auxIdAlum = (String) this.vista.__tabla_alumnos.getValueAt(filaa, 1);
  32. }
  33.  
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement