Example #1
0
 /** Update avatar icon. */
 public void updateAvatarInSideIcon() {
   try {
     final URL url = getAvatarURL();
     if (url != null) {
       if (!avatarsShowing) {
         setSideIcon(null);
       } else {
         ImageIcon icon = new ImageIcon(url);
         icon = GraphicUtils.scale(icon, iconSize, iconSize);
         setSideIcon(icon);
       }
     }
   } catch (MalformedURLException e) {
     Log.error(e);
   }
 }