title: JTabbedPane - addTab(title, icon, component) + setTabComponentAt(index, component)
body: <p>According to this <a href="http://docs.oracle.com/javase/tutorial/uiswing/examples/components/index.html#TabComponentsDemo" rel="nofollow noreferrer">example</a> to be more detailed <a href="http://docs.oracle.com/javase/tutorial/displayCode.html?code=http://docs.oracle.com/javase/tutorial/uiswing/examples/components/TabComponentsDemoProject/src/components/TabComponentsDemo.java" rel="nofollow noreferrer">this one</a> I just faced a strange thing...</p>
  
  <p>If I am using method as <code>addTab(title,icon,component)</code>  and next want to add additional component with <code>setTabComponent(count-1,aComponent)</code> then <strong>aComponent</strong> <em>replaces</em> <strong>icon</strong>? I mean in this case tab does not contain icon :(</p>
  
  <p>The effect is something like (see image). But how to add icons on such tabs? </p>
  
  <p><img src="https://i.stack.imgur.com/xGly9.png" alt="enter image description here"></p>
  
  <p>I am not pretty sure but I guess somehow <strong>aComponent</strong> replaces <strong>icon</strong>... So my question is...
  How to have three of them <strong>icon</strong> , <strong>title</strong> and <strong>aComponent</strong> on one tab at the same time? </p>