Exemple #1
0
 public void addRoomPane(IMRoom room, RoomPanel entityPanel) {
   ImageIcon avatar = UIUtils.Bean.byteToIcon(room.getAvatar(), 16, 16);
   tabbedPane.addTab(room.getNick(), avatar, entityPanel);
   tabbedPane.setSelectedComponent(entityPanel);
   setTitle(getI18nService().getMessage("conversationTitle", room.getNick()));
 }
Exemple #2
0
 public void addBuddyPane(IMBuddy buddy, UserPanel entityPanel) {
   ImageIcon avatar = UIUtils.Bean.byteToIcon(buddy.getAvatar(), 16, 16);
   tabbedPane.addTab(buddy.getNick(), avatar, entityPanel);
   tabbedPane.setSelectedComponent(entityPanel);
   setTitle(getI18nService().getMessage("conversationTitle", buddy.getNick()));
 }