Menu

#59 Popup window z-order problem on 1.6

closed-fixed
5
2007-12-21
2007-10-13
No

Something must have changed in focus handling in Java 1.6, because running RText in a 1.6 JRE causes a focus problem in the file chooser. In 1.5.x and older JRE's, there is no issue.

The problem is with the popup window displaying filename choices as you type a file to open in the file chooser. When using Java 1.6, that popup window can be made to not be "on top" of the main file chooser window. Once this happens, it is all but impossible to get it back on top where it belongs.

To reproduce:

1. Open the file chooser, and type a directory name. Note the popup window offering you suggestions as you type.
2. Open any file; this causes the file chooser to close.
3. Re-open the file chooser. Start typing a new filename to open that includes subdirectories (e.g. "C:\windows\system32"). You'll note that sometime when you're typing, the popup suggestion window will "pop under" the main file chooser window, making it unusable. The popup will never again be above the file chooser.

Discussion

  • Robert Futrell

    Robert Futrell - 2007-10-13

    Logged In: YES
    user_id=911646
    Originator: YES

    This will be fixed in the upcoming 0.9.9.3.

    Although I don't like the fix, all I did was call Window#setAlwaysOnTop(true) on the popup. This seems to work, although I'm still not sure what changed between 1.5 and 1.6. Note also that this method is called reflectively, since it was added in 1.5, but we still support 1.4.

     
  • Robert Futrell

    Robert Futrell - 2007-12-21

    Logged In: YES
    user_id=911646
    Originator: YES

    Fixed in 0.9.9.3. There was a bug in the code that I didn't see earlier, so the "fix" described in the previous post was taken out.

     
  • Robert Futrell

    Robert Futrell - 2007-12-21
    • status: open --> closed-fixed