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

Allow painting directly to the backbuffer of an offscreen window.

XMLWordPrintable

    • Cause Known
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      It is presently impossible to paint to the backbuffer of a non-visible window. The state of the window may change while it is offscreen, in which case the developer should have the option to update the backbuffer contents with the new state of the window while it is offscreen. The developer may choose not to paint to the backbuffer for performance reasons; the developer should be allowed to make that decision.

      JUSTIFICATION :
      When a window is set visible, Java first paints the contents of the backbuffer to the screen. Then Java produces a current image of the window and paints that to the screen. If these two images do not match, the window appears to "snap in" to its current state. This is ugly, and can also be misleading when the window displays realtime status of any kind.

      It is feasible for Swing to allow direct painting to the backbuffer of a non-visible window, and this functionality could in many cases improve the quality of Java applications. Therefore the functionality has value.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The developer should be able to request a paint update on the backbuffer of a non-visible window.
      ACTUAL -
      It is impossible for the developer to request a paint update on the backbuffer of a non-visible window.

      CUSTOMER SUBMITTED WORKAROUND :
      There is no workaround.

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

              Created:
              Updated:
              Imported:
              Indexed: