custom opendialog window focus


    Aug 09 2006 | 9:14 am
    Hello,
    i'm writing a bunch of custom UI objects for handling files and
    directories. The first one is an opendialog that opens *what and where
    you want*. Using JFileChooser, if i just create a new one and use
    showOpenDialog(null), of course max freezes while you look for your
    file. It's not really a problem, because technically it works, but
    moving the dialog window leaves garbage on max screen :-( Choosing to
    create a new thread for this works very well but if, by any lack of
    luck, i lose the focus on the dialog window, there's no way to find it
    back in the Windows Taskbar (don't know for osx...). Have to do an
    alt-tab to grab it. How do i fix this ?
    many thanks in advance
    f.e
    --
    f.e chanfrault | aka | personal computer music
    > >>>>>> http://www.personal-computer-music.com
    > >>>>>> |sublime music for a desperate people|

    • Aug 09 2006 | 11:05 am
      Workaround : create a custom JFileChooser using JDialog, then use
      setAlwaysOnTop(true);
      f.e
      f.e chanfrault | aka | personal computer music
      > >>>>>> http://www.personal-computer-music.com
      > >>>>>> |sublime music for a desperate people|
      f.e wrote:
      > Hello,
      >
      > i'm writing a bunch of custom UI objects for handling files and
      > directories. The first one is an opendialog that opens *what and where
      > you want*. Using JFileChooser, if i just create a new one and use
      > showOpenDialog(null), of course max freezes while you look for your
      > file. It's not really a problem, because technically it works, but
      > moving the dialog window leaves garbage on max screen :-( Choosing to
      > create a new thread for this works very well but if, by any lack of
      > luck, i lose the focus on the dialog window, there's no way to find it
      > back in the Windows Taskbar (don't know for osx...). Have to do an
      > alt-tab to grab it. How do i fix this ?
      >
      > many thanks in advance
      >
      > f.e
      >