void () { ArrangementMatchingRulesModel model = myList.getModel(); if (myRow < 0 || myRow >= model.getSize()) { myRow = getModelIndex(); } else { Object o = model.getElementAt(myRow); if (o != myModelValue) { myRow = getModelIndex(); } } }