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

Frame Decorations are erased in FullScreen mode when using VolatileImages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Understanding:
      Fix Understood
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Imported:
                Indexed: