# Setting Font and Colour for tabbed component

**URL:** <https://forum.juce.com/t/setting-font-and-colour-for-tabbed-component/9256>\
**Category:** General JUCE discussion\
**Created:** [September 18, 2012, 1:33pm UTC](https://forum.juce.com/t/setting-font-and-colour-for-tabbed-component/9256 "2012-09-18T13:33:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@vinay](https://forum.juce.com/u/vinay)\
**Post date:** [September 18, 2012, 1:33pm UTC](https://forum.juce.com/t/setting-font-and-colour-for-tabbed-component/9256/1 "2012-09-18T13:33:53Z")

</div>

Hi,

I have some queries I would like to ask here. Kindly check if someone can help me regarding the following queries

1. I am trying to set color for the Tab which I created using TabbedComponent class by the following piece of code:

m\_pTabbedComponent-\>getTabbedButtonBar().getTabButton( nTabIndex )-\>setColour( TabbedButtonBar::tabTextColourId, Colours::black);

But this code is not working for setting the Text color. I am struggling to change the text color which by default is white.

1. I am not able to see setFont function for the TabbedComponent class. So is there any way to set the font for the tab text.

I will be really thankful if someone can look into the queries and post the reply as soon as possible.

Thanks

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 18, 2012, 2:40pm UTC](https://forum.juce.com/t/setting-font-and-colour-for-tabbed-component/9256/2 "2012-09-18T14:40:29Z")

</div>

I think you’d probably want to use a custom LookAndFeel to draw the tabs if you need that much control over it.
