Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4997949

REG: Focus Traversal does not work when running app remotely on Linux

XMLWordPrintable

    • b42
    • x86
    • linux_redhat_9.0

      I am running a small application which would popup a frame with 2 buttons - Native Dlg, Common Dlg. When you click on the button you would get a print dialog. From my Sol9(CDE) box I logged into Java Desktop System remotely through SSH and executed this app, setting the display to my solaris box. When the frame
      pops up, the focus is given to one of the buttons shown. I press space bar to bring up the swing print dialog. But in this case, focus is not given to any of the components on the print dialog and hence tab traversal does not work. None of the components gain focus even when I click them using mouse and hence could not change the values in any of the text fields shown in the dialog. But this works fine when I bring up the print dialog by clicking the 'Native Dlg' button on the parent frame using mouse instead of pressing the space bar.

      One more behavior I noticed was that the button that brings up the print dialog remains pressed for ever when I press the space bar to click it (when it has focus). This does not happen with mouse.

      I tried reproducing this on JDS (Mercury) as well as Sol9 by executing the app directly on them but not able to reproduce. It is shown only when I run it remotely. I reproduced it with Tiger-beta-b30. It is not reproducible on Tiger-beta-b09. I feel this has been introduced somewhere between b10-b29. I could not get access to those builds currently and hence could not pin point the build. This is not reproducible when both the platforms are Sol9.

      I have attached the sample test. Execute it remotely on Mercury or Linux RH9 from a solaris box and press the space bar once the frame is loaded. Check whether the button remains pressed until you click it. Check whether the print dialog gains focus when it comes up. If not the bug is reproduced.

            son Oleg Sukhodolsky (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: