Its impossible to set the text-(and highlight) colour of a fileTreeComponent individually, because drawFileBrowserRow uses the global LookAndFeel.
Instead it would be better to pass a FileTreeComponent-reference , and “find” the colour from it.
This issue is related to this topic: http://www.rawmaterialsoftware.com/viewtopic.php?f=2&t=5735
[quote]void LookAndFeel::drawFileBrowserRow (Graphics& g, int width, int height,
const String& filename, Image* icon,
const String& fileSizeDescription,
const String& fileTimeDescription,
const bool isDirectory,
const bool isItemSelected,
const int /itemIndex/,
DirectoryContentsDisplayComponent&)
{
if (isItemSelected)
g.fillAll (findColour (DirectoryContentsDisplayComponent::highlightColourId));[/quote]