title: codename one image from url
body: <p>I am trying to make a mobile app using Java and codename one plugin. My question is - what's the simples way to populate an image from a URL to a label? I Googled it and all I found was this piece of code:</p>
  
  <pre><code>Image i = URLImage.createToStorage(placeholder, "fileNameInStorage", "http://xxx/myurl.jpg", URLImage.RESIZE_SCALE); 
  </code></pre>
  
  <p>But I have no idea how to use it. What is a <code>placeholder</code>? It asks an <code>EncodedImage</code> parameter, but if I do:</p>
  
  <pre><code>EncodedImage image = new EncodedImage(10, 10);
  </code></pre>
  
  <p>I get the error that <code>EncodedImage</code> is protected.</p>
  
  <p>I simply want to populate an image from a URL to my desired label in a form.</p>
  
  <p>I am using GUI builder.</p>