textChatMenuItem.setEnabled(true);
textChatMenuItem.setSelected(true);
chatHud.setVisible(true);
// Listen for when the HUD component closes. When it does, we
// need to set the state of the checkbox menu item.
chatHud.addEventListener(new HUDEventListener() {
public void HUDObjectChanged(HUDEvent event) {
// If the window is being closed, we need to update the
// state of the checkbox menu item, but we must do this
// in the AWT Event Thread.