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

JSplitPane: callback methods for continuous resize

XMLWordPrintable

      Name: rmT116609 Date: 04/22/2004


      A DESCRIPTION OF THE REQUEST :
      JSplitPane allows to disable continuous resizing of component with setContinuousResize(false).

      This is useful if resizing of components is too expensive. It would be useful however, if the component being resized could get a notification when the resizing starts and finishes. My idea is, that the component could use a simplified paint method while it is being resized. This would give the user the impression of continuous resize without a performance penalty.

      I found that BasicSplitPaneUI already has methods startDragging() and finishedDraggingTo(). I propose that JSplitPane exposes similar methods:
         JSplitPane.startDragging()
         JSplitPane.finishedDragging()

      JUSTIFICATION :
      Allows more efficient continuous resizing of components.

      ACTUAL -
      Currently, there are only two choices:

      * continuous resizing: looks cool, but can become excessively expensive
      * non-continuous resizing: cheap, but provides little user-feedback


      CUSTOMER SUBMITTED WORKAROUND :
      create a custom SplitPaneUI
      (Incident Review ID: 230372)
      ======================================================================

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

              Created:
              Updated:
              Imported:
              Indexed: