JDK-4169858 : JMenu does not render properly when set to heavyweight
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.6,1.2.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6,windows_nt
  • CPU: x86,sparc
  • Submitted: 1998-08-28
  • Updated: 1998-09-18
  • Resolved: 1998-09-18
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
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.

Comments
PUBLIC COMMENTS JMenu does not render properlay when made heavyweight.
10-06-2004

EVALUATION The descriptions mentions an attached bit of code, but there are no attachments. georges.saab@Eng 1998-09-09 I've attached the sample program. jim.argabright@East 1998-09-09 Date: Wed, 9 Sep 1998 14:20:24 -0700 (PDT) From: "Georges Saab" <###@###.###> Subject: Bug 4169858 To: jim.argabright@East Cc: ###@###.### Hi Jim, When you say: > Note that the rendering of the menus/submenus is incorrect. Can you explain what you mean? What i see on the current build is that the submenus flicker but don't stay up. Is that what you are also seeing? (There have been problems in the past with 'offset rendering' as well, I want to make sure I know which problem you are reporting here). Thanks, GES Date: Wed, 9 Sep 1998 17:46:59 -0400 (EDT) From: "Jim Argabright - Market Development Engineering" <Jim.Argabright@East> Subject: Re: Bug 4169858 To: Georges.Saab@Eng Cc: Jim.Argabright@East > > Can you explain what you mean? What i see on the current build > is that the submenus flicker but don't stay up. Is that what you are > also seeing? (There have been problems in the past with 'offset rendering' > as well, I want to make sure I know which problem you are reporting here). > Sure. What we see wrong are different between Solaris (beta4) and WinNT(beta4.1). On Solaris (1.2beta4), the problems are 1. Sometimes the selected menu from the menubar won't render. For example, if I select the first menu on the menubar, a gray region appears below the menu, but no text is rendered inside of it. 2. Sometimes a selected submenu won't render either, i.e. a gray box appears, but no text. Sometimes the gray box will have various artifacts in it, but no text. On WinNT (1.2beta4.1), things are somewhat better. The problem is basically that the submenus don't render at all on the first two menu items. The first level menus seem OK. Jim ====================================================================== From the symptoms described, I believe that this is the same bug as I'll wait until that one is fixed and test the code in this bug before closing it as a duplicate, just to make sure. georges.saab@Eng 1998-09-18 I now have a workaround for 4168483 and it fixes the problem with this bug as well, running the example program works fine. I'm listing this as a duplicate of 4168483.
18-09-1998