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

Frame Decorations are erased in FullScreen mode when using VolatileImages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • 2d
    • Fix Understood
    • x86
    • windows_xp

      Calling setFullScreenWindow(frame) pushes the frame into fullscreen mode and by default, the frame decorations are shown. It's not turned off unless it is done explicitly by calling setUndecorated(true). When I draw a volatile image on the frame which is in fullscreen mode, starting at a location of 0, 0 extending to the full width and height of the frame, the frame decorations are getting erased. This is incorrect. When the user has chosen to have the decorations on, it must be preserved at all times and all other drawings must happen only within the client area. The decorations must not be erased. Also all the heavyweight components are erased alongwith the decorations.

      This is noticed only on WinXP right from JDK1.4. This is not reproducible on Solaris.

      I have attached a sample test. Execute the sample test. A frame would appear in fullscreen mode, with a button - 'draw'. Click on the button. This would actually draw a volatile image from 0,0 to width, height. You would notice that the decorations of the frame are no longer shown and they are hidden below the volatile image.

            Unassigned Unassigned
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: