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

Frame back ground being erased with default color , What if we don't need erase

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.1.8
    • client-libs
    • x86
    • windows_nt



      Name: dbT83986 Date: 03/17/99


      I would not say this is a problem. But major improvement in AWT.

      Peer implementation of window in windows has background being painted with default color. As per my understanding windows
      DK has message called WM_ERASEBKGND which erases with specified back ground color and it will send a paint message for
      the window. Because of this reason entire window gets validated and needs to be repainted. If user can have option to have
      whether to erase back ground or to just to paint over will increase performance.

      We are writing a considerably huge application which has lot of (light weight)windows, when any other window is moved over or
      this frame is resized we see the back ground being erased and repainted.

      I have worked with Win SDK , I do know that by blocking WM_ERASEBKGND and managing properly would increase performance
      of painting. This will also improve performance on JDesktopPane which is very solve in moving JInternalFrame's right now.
      (Review ID: 55679)
      ======================================================================

            rraysunw Richard Ray (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: