Ejemplo n.º 1
0
 @Override
 public void joinNotice(String who, String where, String context) {
   consolePanel.p(who + " joined " + where);
   EntryPanel peepList = peepLists.get(where);
   if (peepList != null) {
     peepList.addEntry(who);
     if (currentConvo != null && currentConvo.equals(where))
       peepListPane.setViewportView(peepLists.get(where).PANEL);
   }
 }
Ejemplo n.º 2
0
  @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);
  }