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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • docs
    • beta2
    • generic
    • generic
    • Verified

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: