Icon in tab of tabbedcomponent

I came across Juce today and am impressed with the toolkit so far.

Is it possible to place an icon/image to the left of the text in the top tab of a tabbedcomponent?
How would I go about doing this?

You should override TabBarButton and add your image there
and in TabbedComponent::createTabButton(), return your inherited class.

or you could override the drawTabButton() method from your custom LookAndFeel class.

[quote=“Shlomi”]You should override TabBarButton and add your image there
and in TabbedComponent::createTabButton(), return your inherited class.[/quote]
And what about click on this image only?
I want to add image to close tab. Where I can handle click event on this image?