@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; } } }
@Override public void windowGainedFocus(WindowEvent e) { searchByField(manageBreeds.getSearching().getTxtSearch().getText().toLowerCase()); }
@Override public void keyReleased(KeyEvent e) { if (e.getSource().equals(manageBreeds.getSearching().getTxtSearch())) { searchByField(manageBreeds.getSearching().getTxtSearch().getText().toLowerCase()); } }