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

EOU: Replacement for deprecated setNextFocusableComponent() is not documented!

XMLWordPrintable

    • b25
    • x86
    • windows_2000



      Name: rmT116609 Date: 02/01/2002


      java version "1.4.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
      Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)

      DESCRIPTION OF THE PROBLEM :

      Replacement for deprecated setNextFocusableComponent(Component aComponent) is not documented.

      Here is the url:

      http://java.sun.com/j2se/1.4/docs/api/javax/swing/JComponent.html#setNextFocusableComponent(java.awt.Component)

      /*

      "Deprecated. As of 1.4, replaced by FocusTraversalPolicy "

      */

      Actual Behaviour:
      -----------------

      When setNextFocusableComponent() is used in the code. It gives a warning.
      ----------
      warning: setNextFocusableComponent(java.awt.Component) in
      javax.swing.JComponent has been deprecated
      ----------

      Expected Behaviour:
      -------------------

      The java API for JComponent.setNextFocusableComponent() should include the code example as to how the deprecated method should be replaced to use the new
      FocusTraversalPolicy function?.


      (Review ID: 138778)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: