searchResultsPanel.removeAll();
nameField.setText(nameFieldDefault);
Type t1, t2;
PokemonInfo pokemonInfo;
for (int i = 1; (pokemonInfo = PokemonInfo.get(i)) != null; i++) {
t1 = Type.valueOf(pokemonInfo.getType1());
t2 = Type.valueOf(pokemonInfo.getType2());
if (selectedType == t1 || selectedType == t2) {
searchResultsPanel.add(new SelectablePokemonPanel(this, pokemonInfo));
}
}