FileChooser in FengGui always at back

Hi!

I'm currently trying to use  Fenggui as a GUI interface for JME. I added a JFileChooser code in the FengJME.java class (the one in the tutorial) to load some files into the scene. However I encountered a problem which I am not able to solve although the solution might be easy: the problem is that the filechooser-window always opens behind the 3d glide window on the first start. I can handle that "somehow" when using "windowed mode", but it is unaccaptable when going to fullscreen. Despite the lines of code (see below) which should bring the filechooser to front, it doesn't work.

A solution might be to set a Parent Component in here: fileChooser.showOpenDialog(parentcomp); it expects some Component or Frame, however the tutorial sample extends no frame or else :confused:

Any ideas what might be wrong?



public void load()

    {
      JFileChooser fileChooser = new JFileChooser();
      JFrame dialog = new JFrame();
      int returnVal = fileChooser.showOpenDialog(dialog);
      
                        // trying to get to front which doesn't work
                        dialog.setVisible(true);
      dialog.requestFocus();      
      dialog.toFront();

//      ... some other code
    }




edit: I'm adding: obviously when using: "app.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOG);" it works in windowed mode and the filechooser shows in the front... however always showing the display settings dialog is annoying when testing.
In fullscreen mode: as soon as I activate the fileChooser the graphics of the 3d window and the filechooser window look glitchy and ugly no matter which (ALWAYS/NEVER_SHOW_PROPS_DIALOG) I choose. Isn't there some kind of FengGui filechooser or something like that?

see Forums at http://www.fenggui.org, after searching for FileChooser i got this thread:

http://www.fenggui.org/forum/index.php?topic=322.0



Greetz