Thanks for that.. I couldn't find the right method...
Saw the faq etc.. but when I did
JPopupMenu.setDefaultLightWeightEnabled(false) it didn't work for normal
menus.. and I couldn't find a similar method for JMenus themselves...
but I guess your code explains how!
Cheers
Spencer
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]] On Behalf Of Justin Couch
Sent: 29 August 2001 00:03
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Heavyweight JMenu?
> Its in the FAQ on j3d.org. Once you set popups menus to heavyweight
> - the whole menu system becomes heavyweight.
Not quite correct. You can set it on a per-menu basis. Here's the code I
use in my scribbler application where I use some swing frames and some
heavyweight frames
JMenuBar menubar = getJMenuBar();
int num_menus = menubar.getMenuCount();
for(int i = 0; i < num_menus; i++)
{
JMenu menu = menubar.getMenu(i);
JPopupMenu popup = menu.getPopupMenu();
popup.setLightWeightPopupEnabled(false);
}
--
Justin Couch http://www.vlc.com.au/~justin/
Freelance Java Consultant http://www.yumetech.com/
Author, Java 3D FAQ Maintainer http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
- Greg Bear, Slant
-------------------------------------------------------------------
========================================================================
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff JAVA3D-INTEREST". For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".