void galotneSelektēta() { Ending ending = null; int i = galotņuTabula.getSelectedRow(); Object o = null; if (i >= 0) o = galotņuTabula.getValueAt(i, 0); if (o != null) ending = lexicon.endingByID(Integer.parseInt(o.toString())); galĪpMod.setAttributes(ending); }