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

disabled button gains focus when requestFocus() is invoked on disabled button

XMLWordPrintable

    • x86
    • windows_nt

      Disabled button gains focus when requestFocus() method is called.This bug is only in button( both heavy weight and light weight),it is not producible in other components.

      Operating Systems:Windows and Solaris

      To Reproduce --> Run the sample code with the awtsqe.jar set in the classpath. - Type any key while the program is runnning.
      - You would notice that the key events are triggered on the disabled button( The keys are printed at the terminal).
      - This can be tested for AWT Button by uncommenting the Button declaration and commenting the LWButton declaration.

            dmendenhsunw David Mendenhall (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: