title: How can I add a badge to a tab in CodenameOne?
body: <p>I tried this code:</p>
  
  <pre><code>FloatingActionButton badge = FloatingActionButton.createBadge("33");
  badge.bindFabToContainer(tabs.getTabComponentAt(3), Component.RIGHT, Component.TOP);
  </code></pre>
  
  <p>However for some reason I get a </p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: Component is already contained in Container</p>
  </blockquote>
  
  <p>exception.</p>
  
  <p>I tried also:</p>
  
  <pre><code>tabs.getTabsContainer().getComponentAt(3)
  </code></pre>
  
  <p>without success.</p>