@Override public void chatMessage(String who, String where, String what) { if (convoList.containsEntry(where) == false) conversationStartedNotice(where); if (who.toUpperCase().equals(USERNAME.toUpperCase())) chatArea.clientPrint(what, who, where); else chatArea.serverPrint(what, who, where); }
@Override public void conversationEndedNotice(String convo) { convoList.removeEntry(convo); convoListPane.setViewportView(convoList.PANEL); chatArea.removeChat(convo); peepLists.remove(convo); }
@Override public void entrySelected(EntryPanel list, String entry) { if (list == convoList) { currentConvo = entry; chatArea.showChat(entry); peepListPane.setViewportView(peepLists.get(entry).PANEL); } }
@Override public void conversationStartedNotice(String convo) { convoList.addEntry(convo); convoList.highlightEntry(convo, Color.RED); convoListPane.setViewportView(convoList.PANEL); chatArea.createNewChat(convo); EntryPanel peepList = new EntryPanel(this); peepList.PANEL.setBackground(BACKGROUND); peepList.PANEL.setForeground(new Color(255, 69, 0)); peepLists.put(convo, peepList); }