gestureMI.setSelected(false);
gestureMI.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
boolean visible = gestureMI.isSelected();
if (gestureHUDRef == null || gestureHUDRef.get() == null) {
GestureHUD hud = new GestureHUD(gestureMI);
hud.setAvatarCharacter(avatarCellRenderer.getAvatarCharacter(), visible);
gestureHUDRef = new WeakReference(hud);
}
//issue #174 hud visibility management
if (visible) {
gestureHUDRef.get().setMaximized();