title: How to make JTabbedPane autoresize to fit page dimensions?
body: <p>I have only JTabbedPane inside JFrame. JTabbedPane sets its dimensions to biggest page width/height. 
  As pages has different size is it possible to force JTabbedPane to change its dimensions when selecting other page?</p>
  
  <p><a href="http://grab.by/3hIg" rel="noreferrer">http://grab.by/3hIg</a></p>
  
  <p>Top one is how it behave now and bottom one is how i want it to behave (i resized frame by hand)</p>