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

RFE: The provided ComponentUI's need to be more configurable

XMLWordPrintable



      Name: jk109818 Date: 07/28/2003


      A DESCRIPTION OF THE REQUEST :
      There is no easy way to modify the mousing
      behavior of the JTree across all platforms.
      The groundwork for such a modification is already
      there in BasicTreeUI in the form of 12+ different
      Handlers (including a MouseHandler. Unfortunately,
      the mouse handler is not directly settable, and the
      only way to change the behavior (short of
      rewriting the ComponentUI) is to subclass the TreeUI
      for all the different target platforms and then override
      the "createHandler" method for the handler responsible
      for the behavior you want to modify. Why not make life
      easy for everyone and create setter functions in BasicTreeUI
      for all those handlers?




      JUSTIFICATION :
      In my experience, it is not uncommon to need
      slight variants of Component behavior.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Have a "setMouseHandler" method in BasicTreeUI
      (Incident Review ID: 192898)
      ======================================================================

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

              Created:
              Updated:
              Imported:
              Indexed: