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

JMenu does not render properly when set to heavyweight

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.1.6, 1.2.0
    • client-libs
    • x86, sparc
    • solaris_2.6, windows_nt

      JMenu does not render properly when a call is made to setLightWeightPopupEnabled(false). Problem occurs on both beta4 and beta4.1 and
      effects both Solaris and Windows 95.

      A sample program is attached.

      To see the problem, follow these steps:

      1. Run the sample program in normal mode:

      java MenuTest true

      In this case, a call is made to setLightWeightPopupEnabled(true);
      Note that the argument is set to "true". Behavior is correct
      in this situation.

      2. Now run the sample program with the argument set to false:

      java MenuTest false

      This time a call is made to setLightWeightPopupEnabled(false).
      Note that the argument to setLightWeightPopupEnabled() is "false"
      this time.

      Note that the rendering of the menus/submenus is incorrect.

      The customer requires the heavyweight menus because he's using (Java 3D) Canvas3D objects in his Swing desktop and thus needs the heavyweight menus so that they render "on top" of the heavyweight Canvas3D objects.

            gsaab Georges Saab
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: