// can only create new IMI avatars. (In the future, perhaps there should
// be some registry that generates a new avatar, rather than hard-coding
// the IMI stuff. First generate a new unique name for the avatar.
AvatarRegistry registry = AvatarRegistry.getAvatarRegistry();
String avatarName = registry.getUniqueAvatarName();
ImiAvatar newAvatar = ImiAvatar.createAvatar(avatarName);
// Next, simply tell the new avatar to configure itself. It is then
// responsible for changing the appearance of the avatar, etc. to do
// whatever it needs to do for configuration.
newAvatar.configure();
}//GEN-LAST:event_newButtonActionPerformed