String () { ButtonModel selection = myAnchorButtonGroup.getSelection(); if (selection == myAnchorFirstRadio.getModel()) return "first"; if (selection == myAnchorLastRadio.getModel()) return "last"; if (selection == myAnchorBeforeRadio.getModel()) return "before"; if (selection == myAnchorAfterRadio.getModel()) return "after"; return null; }