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

Last Sentence of TextAction Description is Unclear

XMLWordPrintable

    • generic, sparc
    • generic, solaris_2.5.1

      Name: jk109818 Date: 09/24/2002


      FULL PRODUCT VERSION :
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition
      Java HotSpot(TM) Client VM


      A DESCRIPTION OF THE PROBLEM :
      In the description of the TextAction class, the API reads:
      "If the action event is null or can't be narrowed,
      the last focused text component is tried. This is
      determined by being used in conjunction with a
      JTextController which arranges to share that information
      with a TextAction."

      You mean JTextComponent, right?
      (By "last focused", you mean "most-recently-focused", I assume.)

      In any case, to the newcomer to this class, the last
      sentence doesn't enlighten.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. read the doc for TextAction
      http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/text/TextAction.html

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 164909)
      ======================================================================

            peterz Peter Zhelezniakov
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: