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 by Roedy Green ©1996-2009 Canadian Mind Products
index page for letter ⇒ 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)
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 the MenuBar class : available:
Sun’s Javadoc on the Menu class : available:
Sun’s Javadoc on the 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 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
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.62] The information on this page is for non-military use only.
You are visitor number 9,222. Military use includes use by defence contractors.
You can get a fresh 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