// Next, ask the selected avatar whether Customize and Delete is
// supported
if (selected == true) {
AvatarSPI avatar = (AvatarSPI) avatarList.getSelectedValue();
customizeButton.setEnabled(avatar.canConfigure());
deleteButton.setEnabled(avatar.canDelete());
}
// Finally, we see if the select avatar is the one currently in use.
// If so, do not enable the Use button