7879808182838485868788
m_battleManager = new BattleManager(); m_display = display; m_chat = new ChatDialog(); m_requestsForm = new RequestDialog(); m_friendsList = new FriendListDialog(); m_friendsList.setVisible(false); m_display.add(m_friendsList);
478479480481482483484485486487
public void toggleChat(){ if (m_chat.isVisible()) { m_chat.setVisible(false); } else{ if(m_chat==null) m_chat = new ChatDialog(); m_chat.setLocation(0, GameClient.getInstance().getDisplay().getHeight() - m_chat.getHeight()); m_chat.setVisible(true); } }