code: private JComponent getTabComponent(JPanel panel) {
  		JScrollPane scrollPane = panelToScrollPaneMap.get(panel);
  		if (scrollPane != null) {
  			return scrollPane;
  		}
  		return panel;
  	}
docs: Gets the actual component added to a tab for the given panel.
  <p>
  Allows to transparently handle the cases where a {@link #setTabScrollable(String, boolean) tab was set scrollable}, so
  the actual component added is a {@link JScrollPane} not the panel itself. This method should be used, always, when
  managing the components of the {@link #tabbedPane}.
  
  @param panel the panel whose actual component will be returned.
  @return the actual component added to the tab.