예제 #1
0
 /**
  * TMP solution
  * <p>
  * TODO: remove, does not belong here
  */
 public static Image GetImage(String icon)
 {
     try
     {
         return new Image(JEVisClassWS.getResourceAsStream("/" + icon));
     }
     catch (Exception ex)
     {
         logger.info("Could not load icon: /icons/{}", icon);
         return new Image(JEVisClassWS.getResourceAsStream("/icons/1393355905_image-missing.png"));
     }
 }
예제 #2
0
        public BufferedImage GetIcon()
        {
            if (image == null)
            {
                image = ds.getClassIcon(json.getName());
            }

            if (image == null)
            {
                image = SwingFXUtils.fromFXImage(JEVisClassWS.getImage("1472562626_unknown.png", 60, 60).getImage(), null);
                iconChanged = true;
            }
            return image;

        }