# FileChooser not displaying properly

**URL:** <https://forum.juce.com/t/filechooser-not-displaying-properly/4254>\
**Category:** General JUCE discussion\
**Created:** [September 8, 2009, 6:15pm UTC](https://forum.juce.com/t/filechooser-not-displaying-properly/4254 "2009-09-08T18:15:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AaronLeese](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/aaronleese/32/624_2.png) [@AaronLeese](https://forum.juce.com/u/AaronLeese)\
**Post date:** [September 8, 2009, 6:15pm UTC](https://forum.juce.com/t/filechooser-not-displaying-properly/4254/1 "2009-09-08T18:15:00Z")

</div>

Not sure why, but Filechooser objects have trouble displaying on windows vista …

When using the plugin directory scanner, clicking the “+” button does the following:

```
    FileChooser chooser (TRANS("Add a folder..."), start, T("*"));

    if (chooser.browseForDirectory())
    {
        path.add (chooser.getResult(), currentRow);
    }

```

Unfortunately, the chooser object doesn’t initially display on vista. However, if I then press the “Alt” key, the desktop refreshes and displays the file chooser object properly.

Not sure why it isn’t displayed right away … but is there some way to add a bringtofront or repaint to the FileChooser object (not being a component, I can’t seem to figure a way to repaint it).

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 8, 2009, 7:06pm UTC](https://forum.juce.com/t/filechooser-not-displaying-properly/4254/2 "2009-09-08T19:06:38Z")

</div>

That’s odd, I hadn’t noticed anything like that. I’ll take a look next time I’m using vista…
