parent.validate();
parent.repaint();
}
private void typeSelectorSearch() {
Type selectedType = typeSelector.getCurrentElement();
if (selectedType == null) {
return;
}
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());