예제 #1
0
 @Override
 public void mouseClicked(MouseEvent e) {
   if (e.getSource().equals(manageBreeds.getSearching().getTblResult())) {
     int fila = manageBreeds.getSearching().getTblResult().rowAtPoint(e.getPoint());
     if (fila > -1) {
       id = (Long) manageBreeds.getSearching().getTblResult().getValueAt(fila, 0);
       temp = modelBreeds.searchBreedById(id);
       return;
     }
   }
 }
예제 #2
0
 @Override
 public void windowGainedFocus(WindowEvent e) {
   searchByField(manageBreeds.getSearching().getTxtSearch().getText().toLowerCase());
 }
예제 #3
0
 @Override
 public void keyReleased(KeyEvent e) {
   if (e.getSource().equals(manageBreeds.getSearching().getTxtSearch())) {
     searchByField(manageBreeds.getSearching().getTxtSearch().getText().toLowerCase());
   }
 }