menu : Java Glossary

go to home page M words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 Roedy Green, Canadian Mind Products
menu
pulldown list of actions the user can select across the top of a frame. See the essay on menus on how I think user-configurable, globally-configurable, menus should be implemented. In AWT you need three classes to set up a menu: MenuBar, Menu, and MenuItem. In Swing you use JMenuBar, JMenu, and JMenuItem. Here is how you use it:

Learning More

Sun’s Javadoc on MenuBar class : available:
Sun’s Javadoc on Menu class : available:
Sun’s Javadoc on MenuItem class : available:

In Windows NT, the way you configure your menu is by dragging shorcuts icons into various magic directories: The magic directories are as follows:

Windows NT Menu Configuration
Directory Purpose
WINNT\Profiles\administrator\Desktop Icons for the Administrator’s desktop.
WINNT\Profiles\administrator\Send To Apps the Administrator can send an file to for processing via right click send to.
WINNT\Profiles\administrator\Start Menu Administrator’s main start menu.
WINNT\Profiles\administrator\Start Menu\Programs Administrator’s second tier start menu accessible by clicking Programs.
WINNT\Profiles\administrator\Start Menu\Programs\Startup Programs that will automaically start when you reboot and logon as the Administrator.
WINNT\Profiles\All Users\Desktop Icons that will appear on all users’ desktops.
WINNT\Profiles\All Users\Send To Apps all users can send an file to for processing via right click send to.
WINNT\Profiles\All Users\Start Menu Appear on all users’ main start menu. They appear below the Administrator list, not sensibly merged with it sorted in order as you might expect.
WINNT\Profiles\All Users\Start Menu\Programs Appear on all users’ second tier start menu accessible by clicking Programs. They appear below the Administrator list, not sensibly merged with it sorted in order as you might expect.
WINNT\Profiles\All Users\Start Menu\Programs\Startup Programs that will automaically start when you reboot and logon as any user.
WINNT\Profiles\Default User\Desktop Icons that will appear on a new user’s desktop.
WINNT\Profiles\Default User\Send To Apps a new user can send an file to for processing via right click send to.
WINNT\Profiles\Default User\Start Menu Appear on a new users’ main start menu.
WINNT\Profiles\Default User\Start Menu\Programs Appear on a new users’ second tier start menu accessible by clicking Programs.
WINNT\Profiles\Default User\Start Menu\Programs\Startup Programs that will automaically start when you reboot and logon as a newly created user, before he has configured his own profile.
Each user has a profile similar to Administrator.W95/W98 works similarly, except there is no Profiles or Administrator level in the directory name.Me/NT/W2K/XP/W2K3/Vista/W7 menu configuring by direct drag and drop on the menu itself which is considerably easier, and also considerably easier to muck up by accident.

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/menu.html J:\mindprod\jgloss\menu.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.106]
You are visitor number 10,377.