/** Sets the icons of the call buttons depending on the chat session type. */ private void setCallButtonsIcons() { if (chatSession instanceof ConferenceChatSession) { callButton.setIconImage(ImageLoader.getImage(ImageLoader.CHAT_ROOM_CALL)); callVideoButton.setIconImage(ImageLoader.getImage(ImageLoader.CHAT_ROOM_VIDEO_CALL)); callButton.setPreferredSize(new Dimension(29, 25)); callVideoButton.setPreferredSize(new Dimension(29, 25)); } else { callButton.setIconImage(ImageLoader.getImage(ImageLoader.CHAT_CALL)); callVideoButton.setIconImage(ImageLoader.getImage(ImageLoader.CHAT_VIDEO_CALL)); callButton.setPreferredSize(new Dimension(25, 25)); callVideoButton.setPreferredSize(new Dimension(25, 25)); } callButton.repaint(); callVideoButton.repaint(); }
/** Reloads icons for buttons. */ public void loadSkin() { inviteButton.setIconImage(ImageLoader.getImage(ImageLoader.ADD_TO_CHAT_ICON)); historyButton.loadSkin(); sendFileButton.setIconImage(ImageLoader.getImage(ImageLoader.SEND_FILE_ICON)); fontButton.setIconImage(ImageLoader.getImage(ImageLoader.FONT_ICON)); previousButton.setIconImage(ImageLoader.getImage(ImageLoader.PREVIOUS_ICON)); nextButton.setIconImage(ImageLoader.getImage(ImageLoader.NEXT_ICON)); leaveChatRoomButton.setIconImage(ImageLoader.getImage(ImageLoader.LEAVE_ICON)); desktopSharingButton.setIconImage(ImageLoader.getImage(ImageLoader.CHAT_DESKTOP_SHARING)); optionsButton.setIconImage(ImageLoader.getImage(ImageLoader.CHAT_CONFIGURE_ICON)); setCallButtonsIcons(); }