Hello,
In my application, I create and use a custom look and feel. It is set as the default Look and Feel and all the components use it as expected.
However, when I create a FileBrowserComponent with an initial file, the filenameBox is drawn with the wrong color.
The color changes (and it’s the correct one) if I change the text with
browser.setFileName(“another text”);
From what I understand, this comes from the fact that the filenameBox texteditor is created and set before lookAndFeelChanged() is called in FileBrowserComponent constructor.
FileBrowserComponent::FileBrowserComponent (int flags_,
const File& initialFileOrDirectory,
const FileFilter* fileFilter_,
FilePreviewComponent* previewComp_)
…
filenameBox.setText (filename, false);
…
lookAndFeelChanged();
Best regards,