title: Set icon size of JTabbedPane tab icon
body: <p>Is there a way to easily set the size of an icon for a <code>JTabbedPane</code>tab.
  The icon is the same size as the original image and therefore makes for a very ridiculous looking tab with it taking up half the screen. </p>
  
  <p>How would I easily rescale this icon to be a similar size to my text "Settings" and just have it appear normally?</p>
  
  <pre><code>URL cogIconUrl = getClass().getResource("/images/cog.png");
  ImageIcon cogImg = new ImageIcon(cogIconUrl);
  
  JTabbedPane jtp = new JTabbedPane();
  getContentPane().add(jtp);
  JPanel jp1 = new JPanel();
  jtp.addTab("Settings", cogImg,jp1);
  </code></pre>
  
  <p>Furthermore, how would you go about setting the font of the tab text? I assume the two are potentially related.</p>