public void resultChanged(LookupEvent ev) {
Lookup.Result<RankingResult> r = (Lookup.Result<RankingResult>) ev.getSource();
RankingResult[] res = r.allInstances().toArray(new RankingResult[0]);
if (res.length > 0) {
RankingResult lastResult = res[0];
if (isVisible()) {
fetchTable(lastResult);
}
}
}