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

Swing menubar doesn't paint it's gradient and border and repaints inconsistently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      Name: gm110360 Date: 09/03/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
      Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
           Using the new swing L&F: you can launch the SwingSet2 App to see this behavior:
           Firstly: The menubar is not drawn with any gradient or border -- it's just plain.
           Now: If I drag the toolbar to float out of the SwingSet2 App and position it such that it covers some of the parent window's menubar area: and then drag it to reveal that previously covered area: that portion (only) of the menubar is re-drawn with its gradient and border. Closing the toolbar window leaves the parent's menubar in this partly-corrupted state. The window doesn't repaint fully until it is resized or minimized; and when it repaints, the menubar is only cleared again -- the gradient and bottom border are not drawn.
           Additionally: This is more to setup and see; and it is peculiar: With another application window open -- a web browser window -- and SwingSet2 App: With the toolbar docked: When the browser window partly covers the SwingSet, clicking back-and-forth from SwingSet to browser to SwingSet leaves the menubar as-is -- plain. Now: Floating the toolbar (aywhere) and again clicking back-and-forth from browser to SwingSet, reveals the menubar partly re-painted _with its effects_! Note the details of these last two circumstances: Both covered/uncovered by another (non-Java) window: different results based on whether the toolbar is docked or floating.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Please see description.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Menubar draws with L&F and repaints consistently and appropriately.
      ACTUAL -
      Menubar draws none of its L&F and repaints partially and inconsistently so.

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 301706)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shickeysunw Shannon Hickey (Inactive)
              Reporter:
              gmanwanisunw Girish Manwani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: