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

addWindowFocusListener() must be used to add WindowFocusListener - doc error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      New API is introduced to add WindowFocusListener - addWindowFocusListener()

      But the documentation for WindowFocusListener still recommends to use addWindowListener() , which in turn will give compilation errors. Hence this has to be updated.

      "The listener object created from that class is then registered with a Window using the Window's addWindowListener method."

      This has to be changed.

      If we use addWindowListener to add WindowFocusListener it gives the following compilation error.

      addWindowListener(java.awt.event.WindowListener) in java.awt.Window cannot be applied to (WindowFocusListenerTest)

      I have refered to the docs available at
      file:/usr/local/java/jdk1.4/doc/api/index.html

        Attachments

          Activity

            People

            • Assignee:
              sharonz Sharon Zakhour (Inactive)
              Reporter:
              rpullanisunw Rakesh Pullanikkad (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: